Package net.minecraft.world.gen.carver
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 djkintermediary net/minecraft/class_2922named net/minecraft/world/gen/carver/ConfiguredCarverofficial dintermediary comp_330named carverofficial eintermediary comp_331named config
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thecarverrecord component.static final com.mojang.serialization.Codec<ConfiguredCarver<?>>private final WCThe field for theconfigrecord component.static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredCarver<?>>>static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredCarver<?>>> -
Constructor Summary
ConstructorsConstructorDescriptionConfiguredCarver(Carver<WC> carver, WC config) Creates an instance of aConfiguredCarverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancarve(CarverContext context, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) carver()Returns the value of thecarverrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanshouldCarve(Random random) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
carver
The field for thecarverrecord component. -
config
The field for theconfigrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdjk;a:Lcom/mojang/serialization/Codec;intermediary field_25832Lnet/minecraft/class_2922;field_25832:Lcom/mojang/serialization/Codec;named CODECLnet/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 bLdjk;b:Lcom/mojang/serialization/Codec;intermediary field_24828Lnet/minecraft/class_2922;field_24828:Lcom/mojang/serialization/Codec;named REGISTRY_CODECLnet/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 cLdjk;c:Lcom/mojang/serialization/Codec;intermediary field_26755Lnet/minecraft/class_2922;field_26755:Lcom/mojang/serialization/Codec;named LIST_CODECLnet/minecraft/world/gen/carver/ConfiguredCarver;LIST_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
shouldCarve
- Mappings:
Namespace Name Mixin selector official aLdjk;a(Lapf;)Zintermediary method_12669Lnet/minecraft/class_2922;method_12669(Lnet/minecraft/class_5819;)Znamed shouldCarveLnet/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 aLdjk;a(Ldjh;Lddu;Ljava/util/function/Function;Lapf;Ldgt;Lclr;Lddt;)Zintermediary method_12668Lnet/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;)Znamed carveLnet/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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
carver
Returns the value of thecarverrecord component.- Returns:
- the value of the
carverrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-