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
official dge
intermediary net/minecraft/class_2922
named net/minecraft/world/gen/carver/ConfiguredCarver
official d
intermediary comp_330
named carver
official e
intermediary comp_331
named config
  • 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
      official a Ldge;a:Lcom/mojang/serialization/Codec;
      intermediary field_25832 Lnet/minecraft/class_2922;field_25832:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/carver/ConfiguredCarver;CODEC:Lcom/mojang/serialization/Codec;
    • REGISTRY_CODEC

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

      public static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredCarver<?>>> LIST_CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Ldge;c:Lcom/mojang/serialization/Codec;
      intermediary field_26755 Lnet/minecraft/class_2922;field_26755:Lcom/mojang/serialization/Codec;
      named LIST_CODEC Lnet/minecraft/world/gen/carver/ConfiguredCarver;LIST_CODEC: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
      official a Ldge;a(Laoh;)Z
      intermediary method_12669 Lnet/minecraft/class_2922;method_12669(Lnet/minecraft/class_5819;)Z
      named shouldCarve Lnet/minecraft/world/gen/carver/ConfiguredCarver;shouldCarve(Lnet/minecraft/util/math/random/Random;)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
      official a Ldge;a(Ldgb;Ldap;Ljava/util/function/Function;Laoh;Lddn;Lcjd;Ldao;)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
      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
    • 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