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 named net/minecraft/world/gen/carver/ConfiguredCarver
intermediary net/minecraft/class_2922
official dzz
named carver
intermediary comp_330
official d
named config
intermediary comp_331
official e
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thecarver
record component.static final com.mojang.serialization.Codec
<ConfiguredCarver<?>> private final WC
The field for theconfig
record component.static final com.mojang.serialization.Codec
<RegistryEntryList<ConfiguredCarver<?>>> static final com.mojang.serialization.Codec
<RegistryEntry<ConfiguredCarver<?>>> -
Constructor Summary
ConstructorDescriptionConfiguredCarver
(Carver<WC> carver, WC config) Creates an instance of aConfiguredCarver
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
carve
(CarverContext context, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) carver()
Returns the value of thecarver
record component.config()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
shouldCarve
(Random random) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
carver
The field for thecarver
record component. -
config
The field for theconfig
record component. -
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
Ldzz;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
Ldzz;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
Ldzz;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
shouldCarve
- 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
Ldzz;a(Lazh;)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
Ldzz;a(Ldzw;Ldua;Ljava/util/function/Function;Lazh;Ldxi;Ldbh;Ldtz;)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 thecarver
record component.- Returns:
- the value of the
carver
record component
-
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-