Record Class ConfiguredCarver<WC extends CarverConfig>

java.lang.Object
java.lang.Record
net.minecraft.world.gen.carver.ConfiguredCarver<WC>
Record Components:
carver -
config -

public record ConfiguredCarver<WC extends CarverConfig>(Carver<WC extends CarverConfig> carver, WC extends CarverConfig config) extends Record
Mappings:
Namespace Name
named net/minecraft/world/gen/carver/ConfiguredCarver
intermediary net/minecraft/class_2922
official eft
named carver
intermediary comp_330
official d
named config
intermediary comp_331
official e
  • Field Details

    • carver

      private final Carver<WC extends CarverConfig> carver
      The field for the carver record component.
    • config

      private final WC extends CarverConfig config
      The field for the config record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ConfiguredCarver<?>> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/carver/ConfiguredCarver;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_25832 Lnet/minecraft/class_2922;field_25832:Lcom/mojang/serialization/Codec;
      official a Left;a:Lcom/mojang/serialization/Codec;
    • REGISTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredCarver<?>>> REGISTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named REGISTRY_CODEC Lnet/minecraft/world/gen/carver/ConfiguredCarver;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24828 Lnet/minecraft/class_2922;field_24828:Lcom/mojang/serialization/Codec;
      official b Left;b:Lcom/mojang/serialization/Codec;
    • LIST_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredCarver<?>>> LIST_CODEC
      Mappings:
      Namespace Name Mixin selector
      named LIST_CODEC Lnet/minecraft/world/gen/carver/ConfiguredCarver;LIST_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_26755 Lnet/minecraft/class_2922;field_26755:Lcom/mojang/serialization/Codec;
      official c Left;c:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • ConfiguredCarver

      public ConfiguredCarver(Carver<WC> carver, WC config)
      Creates an instance of a ConfiguredCarver record class.
      Parameters:
      carver - the value for the carver record component
      config - the value for the config record component
  • Method Details

    • shouldCarve

      public boolean shouldCarve(Random random)
      Mappings:
      Namespace Name Mixin selector
      named shouldCarve Lnet/minecraft/world/gen/carver/ConfiguredCarver;shouldCarve(Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_12669 Lnet/minecraft/class_2922;method_12669(Lnet/minecraft/class_5819;)Z
      official a Left;a(Lbam;)Z
    • carve

      public boolean carve(CarverContext context, Chunk chunk, Function<BlockPos,RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask)
      Mappings:
      Namespace Name Mixin selector
      named carve Lnet/minecraft/world/gen/carver/ConfiguredCarver;carve(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/gen/chunk/AquiferSampler;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/carver/CarvingMask;)Z
      intermediary method_12668 Lnet/minecraft/class_2922;method_12668(Lnet/minecraft/class_5873;Lnet/minecraft/class_2791;Ljava/util/function/Function;Lnet/minecraft/class_5819;Lnet/minecraft/class_6350;Lnet/minecraft/class_1923;Lnet/minecraft/class_6643;)Z
      official a Left;a(Lefq;Ldzp;Ljava/util/function/Function;Lbam;Ledb;Ldgn;Ldzo;)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • carver

      public Carver<WC> carver()
      Returns the value of the carver record component.
      Returns:
      the value of the carver record component
    • config

      public WC config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component