Package net.minecraft.world.gen.carver
Class Carver<C extends CarverConfig>
java.lang.Object
net.minecraft.world.gen.carver.Carver<C>
- Direct Known Subclasses:
CaveCarver,RavineCarver
- Mappings:
Namespace Name named net/minecraft/world/gen/carver/Carverintermediary net/minecraft/class_2939official ebe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final BlockStatestatic final Carver<CaveCarverConfig> protected static final BlockStateprivate final com.mojang.serialization.MapCodec<ConfiguredCarver<C>> protected static final FluidStatestatic final Carver<CaveCarverConfig> static final Carver<RavineCarverConfig> protected static final FluidState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAlwaysCarveBlock(C config, BlockState state) protected static booleancanCarveBranch(ChunkPos pos, double x, double z, int branchIndex, int branchCount, float baseWidth) abstract booleancarve(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) protected booleancarveAtPoint(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, CarvingMask mask, BlockPos.Mutable pos, BlockPos.Mutable tmp, AquiferSampler aquiferSampler, MutableBoolean replacedGrassy) protected booleancarveRegion(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, AquiferSampler aquiferSampler, double x, double y, double z, double width, double height, CarvingMask mask, Carver.SkipPredicate skipPredicate) intcom.mojang.serialization.MapCodec<ConfiguredCarver<C>> getCodec()private static BlockStategetDebugState(CarverConfig config, BlockState state) private @Nullable BlockStategetState(CarverContext context, C config, BlockPos pos, AquiferSampler sampler) private static booleanisDebug(CarverConfig config) private static <C extends CarverConfig,F extends Carver<C>>
Fabstract booleanshouldCarve(C config, Random random)
-
Field Details
-
CAVE
- Mappings:
Namespace Name Mixin selector named CAVELnet/minecraft/world/gen/carver/Carver;CAVE:Lnet/minecraft/world/gen/carver/Carver;intermediary field_29060Lnet/minecraft/class_2939;field_29060:Lnet/minecraft/class_2939;official aLebe;a:Lebe;
-
NETHER_CAVE
- Mappings:
Namespace Name Mixin selector named NETHER_CAVELnet/minecraft/world/gen/carver/Carver;NETHER_CAVE:Lnet/minecraft/world/gen/carver/Carver;intermediary field_13297Lnet/minecraft/class_2939;field_13297:Lnet/minecraft/class_2939;official bLebe;b:Lebe;
-
RAVINE
- Mappings:
Namespace Name Mixin selector named RAVINELnet/minecraft/world/gen/carver/Carver;RAVINE:Lnet/minecraft/world/gen/carver/Carver;intermediary field_13295Lnet/minecraft/class_2939;field_13295:Lnet/minecraft/class_2939;official cLebe;c:Lebe;
-
AIR
- Mappings:
Namespace Name Mixin selector named AIRLnet/minecraft/world/gen/carver/Carver;AIR:Lnet/minecraft/block/BlockState;intermediary field_13301Lnet/minecraft/class_2939;field_13301:Lnet/minecraft/class_2680;official dLebe;d:Ldtc;
-
CAVE_AIR
- Mappings:
Namespace Name Mixin selector named CAVE_AIRLnet/minecraft/world/gen/carver/Carver;CAVE_AIR:Lnet/minecraft/block/BlockState;intermediary field_13294Lnet/minecraft/class_2939;field_13294:Lnet/minecraft/class_2680;official eLebe;e:Ldtc;
-
WATER
- Mappings:
Namespace Name Mixin selector named WATERLnet/minecraft/world/gen/carver/Carver;WATER:Lnet/minecraft/fluid/FluidState;intermediary field_13305Lnet/minecraft/class_2939;field_13305:Lnet/minecraft/class_3610;official fLebe;f:Lepe;
-
LAVA
- Mappings:
Namespace Name Mixin selector named LAVALnet/minecraft/world/gen/carver/Carver;LAVA:Lnet/minecraft/fluid/FluidState;intermediary field_13296Lnet/minecraft/class_2939;field_13296:Lnet/minecraft/class_3610;official gLebe;g:Lepe;
-
carvableFluids
- Mappings:
Namespace Name Mixin selector named carvableFluidsLnet/minecraft/world/gen/carver/Carver;carvableFluids:Ljava/util/Set;intermediary field_13298Lnet/minecraft/class_2939;field_13298:Ljava/util/Set;official hLebe;h:Ljava/util/Set;
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/world/gen/carver/Carver;codec:Lcom/mojang/serialization/MapCodec;intermediary field_24831Lnet/minecraft/class_2939;field_24831:Lcom/mojang/serialization/MapCodec;official iLebe;i:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Carver
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;)Vintermediary <init>Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;)Vofficial <init>Lebe;<init>(Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/world/gen/carver/Carver;register(Ljava/lang/String;Lnet/minecraft/world/gen/carver/Carver;)Lnet/minecraft/world/gen/carver/Carver;intermediary method_12704Lnet/minecraft/class_2939;method_12704(Ljava/lang/String;Lnet/minecraft/class_2939;)Lnet/minecraft/class_2939;official aLebe;a(Ljava/lang/String;Lebe;)Lebe;
-
configure
- Mappings:
Namespace Name Mixin selector named configureLnet/minecraft/world/gen/carver/Carver;configure(Lnet/minecraft/world/gen/carver/CarverConfig;)Lnet/minecraft/world/gen/carver/ConfiguredCarver;intermediary method_28614Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_5871;)Lnet/minecraft/class_2922;official aLebe;a(Leax;)Lebc;
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/world/gen/carver/Carver;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_28616Lnet/minecraft/class_2939;method_28616()Lcom/mojang/serialization/MapCodec;official cLebe;c()Lcom/mojang/serialization/MapCodec;
-
getBranchFactor
public int getBranchFactor()- Mappings:
Namespace Name Mixin selector named getBranchFactorLnet/minecraft/world/gen/carver/Carver;getBranchFactor()Iintermediary method_12710Lnet/minecraft/class_2939;method_12710()Iofficial dLebe;d()I
-
carveRegion
protected boolean carveRegion(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, AquiferSampler aquiferSampler, double x, double y, double z, double width, double height, CarvingMask mask, Carver.SkipPredicate skipPredicate) - Mappings:
Namespace Name Mixin selector named carveRegionLnet/minecraft/world/gen/carver/Carver;carveRegion(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Lnet/minecraft/world/gen/chunk/AquiferSampler;DDDDDLnet/minecraft/world/gen/carver/CarvingMask;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)Zintermediary method_33978Lnet/minecraft/class_2939;method_33978(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;Lnet/minecraft/class_6350;DDDDDLnet/minecraft/class_6643;Lnet/minecraft/class_2939$class_5874;)Zofficial aLebe;a(Leaz;Leax;Lduy;Ljava/util/function/Function;Ldyk;DDDDDLdux;Lebe$a;)Z
-
carveAtPoint
protected boolean carveAtPoint(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, CarvingMask mask, BlockPos.Mutable pos, BlockPos.Mutable tmp, AquiferSampler aquiferSampler, MutableBoolean replacedGrassy) - Mappings:
Namespace Name Mixin selector named carveAtPointLnet/minecraft/world/gen/carver/Carver;carveAtPoint(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Lnet/minecraft/world/gen/carver/CarvingMask;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/world/gen/chunk/AquiferSampler;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Zintermediary method_16581Lnet/minecraft/class_2939;method_16581(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;Lnet/minecraft/class_6643;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_6350;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Zofficial aLebe;a(Leaz;Leax;Lduy;Ljava/util/function/Function;Ldux;Ljd$a;Ljd$a;Ldyk;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
-
getState
@Nullable private @Nullable BlockState getState(CarverContext context, C config, BlockPos pos, AquiferSampler sampler) - Mappings:
Namespace Name Mixin selector named getStateLnet/minecraft/world/gen/carver/Carver;getState(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/chunk/AquiferSampler;)Lnet/minecraft/block/BlockState;intermediary method_36418Lnet/minecraft/class_2939;method_36418(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2338;Lnet/minecraft/class_6350;)Lnet/minecraft/class_2680;official aLebe;a(Leaz;Leax;Ljd;Ldyk;)Ldtc;
-
getDebugState
- Mappings:
Namespace Name Mixin selector named getDebugStateLnet/minecraft/world/gen/carver/Carver;getDebugState(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;intermediary method_36417Lnet/minecraft/class_2939;method_36417(Lnet/minecraft/class_5871;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;official bLebe;b(Leax;Ldtc;)Ldtc;
-
carve
public abstract boolean carve(CarverContext context, C config, Chunk chunk, Function<BlockPos, RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask) - Mappings:
Namespace Name Mixin selector named carveLnet/minecraft/world/gen/carver/Carver;carve(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;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;)Zintermediary method_12702Lnet/minecraft/class_2939;method_12702(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;Lnet/minecraft/class_5819;Lnet/minecraft/class_6350;Lnet/minecraft/class_1923;Lnet/minecraft/class_6643;)Zofficial aLebe;a(Leaz;Leax;Lduy;Ljava/util/function/Function;Layw;Ldyk;Ldcd;Ldux;)Z
-
shouldCarve
- Mappings:
Namespace Name Mixin selector named shouldCarveLnet/minecraft/world/gen/carver/Carver;shouldCarve(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/util/math/random/Random;)Zintermediary method_12705Lnet/minecraft/class_2939;method_12705(Lnet/minecraft/class_5871;Lnet/minecraft/class_5819;)Zofficial aLebe;a(Leax;Layw;)Z
-
canAlwaysCarveBlock
- Mappings:
Namespace Name Mixin selector named canAlwaysCarveBlockLnet/minecraft/world/gen/carver/Carver;canAlwaysCarveBlock(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/block/BlockState;)Zintermediary method_12709Lnet/minecraft/class_2939;method_12709(Lnet/minecraft/class_5871;Lnet/minecraft/class_2680;)Zofficial aLebe;a(Leax;Ldtc;)Z
-
canCarveBranch
protected static boolean canCarveBranch(ChunkPos pos, double x, double z, int branchIndex, int branchCount, float baseWidth) - Mappings:
Namespace Name Mixin selector named canCarveBranchLnet/minecraft/world/gen/carver/Carver;canCarveBranch(Lnet/minecraft/util/math/ChunkPos;DDIIF)Zintermediary method_33976Lnet/minecraft/class_2939;method_33976(Lnet/minecraft/class_1923;DDIIF)Zofficial aLebe;a(Ldcd;DDIIF)Z
-
isDebug
- Mappings:
Namespace Name Mixin selector named isDebugLnet/minecraft/world/gen/carver/Carver;isDebug(Lnet/minecraft/world/gen/carver/CarverConfig;)Zintermediary method_33980Lnet/minecraft/class_2939;method_33980(Lnet/minecraft/class_5871;)Zofficial bLebe;b(Leax;)Z
-