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 - djn- 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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionConfiguredCarver(Carver<WC> carver, WC config) Creates an instance of aConfiguredCarverrecord class.
- 
Method SummaryModifier 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- 
carverThe field for thecarverrecord component.
- 
configThe field for theconfigrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldjn;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_CODECpublic static final com.mojang.serialization.Codec<RegistryEntry<ConfiguredCarver<?>>> REGISTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldjn;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_CODECpublic static final com.mojang.serialization.Codec<RegistryEntryList<ConfiguredCarver<?>>> LIST_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldjn;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
- 
Method Details- 
shouldCarve- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldjn;a(Lapf;)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
 
- 
carvepublic 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- Ldjn;a(Ldjk;Lddx;Ljava/util/function/Function;Lapf;Ldgw;Lclt;Lddw;)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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
carverReturns the value of thecarverrecord component.- Returns:
- the value of the carverrecord component
 
- 
configReturns the value of theconfigrecord component.- Returns:
- the value of the configrecord component
 
 
-