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 official cqfintermediary net/minecraft/class_2939named net/minecraft/world/gen/carver/Carver
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static BlockStatestatic Carver<CaveCarverConfig>protected static BlockStateprivate com.mojang.serialization.Codec<ConfiguredCarver<C>>protected static BlockSourceprotected static FluidStatestatic Carver<CaveCarverConfig>static Carver<RavineCarverConfig>static Carver<RavineCarverConfig>static Carver<CaveCarverConfig>protected static FluidState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAlwaysCarveBlock(BlockState state)protected booleancanCarveBlock(BlockState state, BlockState stateAbove)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,Biome> posToBiome, Random random, class_6350 class_6350, ChunkPos pos, BitSet carvingMask)protected booleancarveAtPoint(CarverContext carverContext, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable pos, BlockPos.Mutable downPos, class_6350 class_6350, MutableBoolean foundSurface)protected booleancarveRegion(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, class_6350 class_6350, double x, double y, double z, double horizontalScale, double verticalScale, BitSet carvingMask, Carver.SkipPredicate skipPredicate)intcom.mojang.serialization.Codec<ConfiguredCarver<C>>getCodec()private static booleanisDebug(CarverConfig config)private static booleanisOnBoundary(int x, int z, int minX, int maxX, int minZ, int maxZ)protected booleanisRegionUncarvable(Chunk chunk, int minX, int maxX, int minY, int maxY, int minZ, int maxZ)private static BlockStatemethod_36417(CarverConfig carverConfig, BlockState blockState)private @Nullable BlockStatemethod_36418(CarverContext carverContext, C c, BlockPos blockPos, class_6350 class_6350)private static <C extends CarverConfig, F extends Carver<C>>
Fabstract booleanshouldCarve(C config, Random random)
-
Field Details
-
CAVE
- Mappings:
Namespace Name Mixin selector official aLcqf;a:Lcqf;intermediary field_29060Lnet/minecraft/class_2939;field_29060:Lnet/minecraft/class_2939;named CAVELnet/minecraft/world/gen/carver/Carver;CAVE:Lnet/minecraft/world/gen/carver/Carver;
-
NETHER_CAVE
- Mappings:
Namespace Name Mixin selector official bLcqf;b:Lcqf;intermediary field_13297Lnet/minecraft/class_2939;field_13297:Lnet/minecraft/class_2939;named NETHER_CAVELnet/minecraft/world/gen/carver/Carver;NETHER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
-
RAVINE
- Mappings:
Namespace Name Mixin selector official cLcqf;c:Lcqf;intermediary field_13295Lnet/minecraft/class_2939;field_13295:Lnet/minecraft/class_2939;named RAVINELnet/minecraft/world/gen/carver/Carver;RAVINE:Lnet/minecraft/world/gen/carver/Carver;
-
UNDERWATER_CANYON
- Mappings:
Namespace Name Mixin selector official dLcqf;d:Lcqf;intermediary field_33413Lnet/minecraft/class_2939;field_33413:Lnet/minecraft/class_2939;named UNDERWATER_CANYONLnet/minecraft/world/gen/carver/Carver;UNDERWATER_CANYON:Lnet/minecraft/world/gen/carver/Carver;
-
UNDERWATER_CAVE
- Mappings:
Namespace Name Mixin selector official eLcqf;e:Lcqf;intermediary field_33414Lnet/minecraft/class_2939;field_33414:Lnet/minecraft/class_2939;named UNDERWATER_CAVELnet/minecraft/world/gen/carver/Carver;UNDERWATER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
-
field_33614
- Mappings:
Namespace Name Mixin selector official fLcqf;f:Lcom;intermediary field_33614Lnet/minecraft/class_2939;field_33614:Lnet/minecraft/class_5840;named field_33614Lnet/minecraft/world/gen/carver/Carver;field_33614:Lnet/minecraft/world/gen/BlockSource;
-
AIR
- Mappings:
Namespace Name Mixin selector official gLcqf;g:Lcjz;intermediary field_13301Lnet/minecraft/class_2939;field_13301:Lnet/minecraft/class_2680;named AIRLnet/minecraft/world/gen/carver/Carver;AIR:Lnet/minecraft/block/BlockState;
-
CAVE_AIR
- Mappings:
Namespace Name Mixin selector official hLcqf;h:Lcjz;intermediary field_13294Lnet/minecraft/class_2939;field_13294:Lnet/minecraft/class_2680;named CAVE_AIRLnet/minecraft/world/gen/carver/Carver;CAVE_AIR:Lnet/minecraft/block/BlockState;
-
WATER
- Mappings:
Namespace Name Mixin selector official iLcqf;i:Lddy;intermediary field_13305Lnet/minecraft/class_2939;field_13305:Lnet/minecraft/class_3610;named WATERLnet/minecraft/world/gen/carver/Carver;WATER:Lnet/minecraft/fluid/FluidState;
-
LAVA
- Mappings:
Namespace Name Mixin selector official jLcqf;j:Lddy;intermediary field_13296Lnet/minecraft/class_2939;field_13296:Lnet/minecraft/class_3610;named LAVALnet/minecraft/world/gen/carver/Carver;LAVA:Lnet/minecraft/fluid/FluidState;
-
alwaysCarvableBlocks
- Mappings:
Namespace Name Mixin selector official kLcqf;k:Ljava/util/Set;intermediary field_13302Lnet/minecraft/class_2939;field_13302:Ljava/util/Set;named alwaysCarvableBlocksLnet/minecraft/world/gen/carver/Carver;alwaysCarvableBlocks:Ljava/util/Set;
-
carvableFluids
- Mappings:
Namespace Name Mixin selector official lLcqf;l:Ljava/util/Set;intermediary field_13298Lnet/minecraft/class_2939;field_13298:Ljava/util/Set;named carvableFluidsLnet/minecraft/world/gen/carver/Carver;carvableFluids:Ljava/util/Set;
-
codec
- Mappings:
Namespace Name Mixin selector official mLcqf;m:Lcom/mojang/serialization/Codec;intermediary field_24831Lnet/minecraft/class_2939;field_24831:Lcom/mojang/serialization/Codec;named codecLnet/minecraft/world/gen/carver/Carver;codec:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Carver
- Mappings:
Namespace Name Mixin selector official <init>Lcqf;<init>(Lcom/mojang/serialization/Codec;)Vintermediary <init>Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;)Vnamed <init>Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Ljava/lang/String;Lcqf;)Lcqf;intermediary method_12704Lnet/minecraft/class_2939;method_12704(Ljava/lang/String;Lnet/minecraft/class_2939;)Lnet/minecraft/class_2939;named registerLnet/minecraft/world/gen/carver/Carver;register(Ljava/lang/String;Lnet/minecraft/world/gen/carver/Carver;)Lnet/minecraft/world/gen/carver/Carver;
-
configure
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpw;)Lcqb;intermediary method_28614Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_5871;)Lnet/minecraft/class_2922;named configureLnet/minecraft/world/gen/carver/Carver;configure(Lnet/minecraft/world/gen/carver/CarverConfig;)Lnet/minecraft/world/gen/carver/ConfiguredCarver;
-
getCodec
- Mappings:
Namespace Name Mixin selector official cLcqf;c()Lcom/mojang/serialization/Codec;intermediary method_28616Lnet/minecraft/class_2939;method_28616()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/world/gen/carver/Carver;getCodec()Lcom/mojang/serialization/Codec;
-
getBranchFactor
public int getBranchFactor()- Mappings:
Namespace Name Mixin selector official dLcqf;d()Iintermediary method_12710Lnet/minecraft/class_2939;method_12710()Inamed getBranchFactorLnet/minecraft/world/gen/carver/Carver;getBranchFactor()I
-
carveRegion
protected boolean carveRegion(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, class_6350 class_6350, double x, double y, double z, double horizontalScale, double verticalScale, BitSet carvingMask, Carver.SkipPredicate skipPredicate)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpy;Lcpw;Lcls;Ljava/util/function/Function;JLcol;DDDDDLjava/util/BitSet;Lcqf$a;)Zintermediary method_33978Lnet/minecraft/class_2939;method_33978(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;JLnet/minecraft/class_6350;DDDDDLjava/util/BitSet;Lnet/minecraft/class_2939$class_5874;)Znamed 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;JLnet/minecraft/class_6350;DDDDDLjava/util/BitSet;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)Z
-
carveAtPoint
protected boolean carveAtPoint(CarverContext carverContext, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable pos, BlockPos.Mutable downPos, class_6350 class_6350, MutableBoolean foundSurface)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpy;Lcpw;Lcls;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lgb$a;Lgb$a;Lcol;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;Ljava/util/BitSet;Ljava/util/Random;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_6350;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Znamed 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;Ljava/util/BitSet;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/class_6350;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
-
method_36418
@Nullable private @Nullable BlockState method_36418(CarverContext carverContext, C c, BlockPos blockPos, class_6350 class_6350)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpy;Lcpw;Lgb;Lcol;)Lcjz;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;named method_36418Lnet/minecraft/world/gen/carver/Carver;method_36418(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/class_6350;)Lnet/minecraft/block/BlockState;
-
method_36417
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpw;Lcjz;)Lcjz;intermediary method_36417Lnet/minecraft/class_2939;method_36417(Lnet/minecraft/class_5871;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;named method_36417Lnet/minecraft/world/gen/carver/Carver;method_36417(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
carve
public abstract boolean carve(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, class_6350 class_6350, ChunkPos pos, BitSet carvingMask)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpy;Lcpw;Lcls;Ljava/util/function/Function;Ljava/util/Random;Lcol;Lbvc;Ljava/util/BitSet;)Zintermediary method_12702Lnet/minecraft/class_2939;method_12702(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;Lnet/minecraft/class_6350;Lnet/minecraft/class_1923;Ljava/util/BitSet;)Znamed 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;Ljava/util/Random;Lnet/minecraft/class_6350;Lnet/minecraft/util/math/ChunkPos;Ljava/util/BitSet;)Z
-
shouldCarve
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcpw;Ljava/util/Random;)Zintermediary method_12705Lnet/minecraft/class_2939;method_12705(Lnet/minecraft/class_5871;Ljava/util/Random;)Znamed shouldCarveLnet/minecraft/world/gen/carver/Carver;shouldCarve(Lnet/minecraft/world/gen/carver/CarverConfig;Ljava/util/Random;)Z
-
canAlwaysCarveBlock
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcjz;)Zintermediary method_12709Lnet/minecraft/class_2939;method_12709(Lnet/minecraft/class_2680;)Znamed canAlwaysCarveBlockLnet/minecraft/world/gen/carver/Carver;canAlwaysCarveBlock(Lnet/minecraft/block/BlockState;)Z
-
canCarveBlock
- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcjz;Lcjz;)Zintermediary method_12703Lnet/minecraft/class_2939;method_12703(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Znamed canCarveBlockLnet/minecraft/world/gen/carver/Carver;canCarveBlock(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
-
isRegionUncarvable
protected boolean isRegionUncarvable(Chunk chunk, int minX, int maxX, int minY, int maxY, int minZ, int maxZ)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lcls;IIIIII)Zintermediary method_33977Lnet/minecraft/class_2939;method_33977(Lnet/minecraft/class_2791;IIIIII)Znamed isRegionUncarvableLnet/minecraft/world/gen/carver/Carver;isRegionUncarvable(Lnet/minecraft/world/chunk/Chunk;IIIIII)Z
-
isOnBoundary
private static boolean isOnBoundary(int x, int z, int minX, int maxX, int minZ, int maxZ)- Mappings:
Namespace Name Mixin selector official aLcqf;a(IIIIII)Zintermediary method_12706Lnet/minecraft/class_2939;method_12706(IIIIII)Znamed isOnBoundaryLnet/minecraft/world/gen/carver/Carver;isOnBoundary(IIIIII)Z
-
canCarveBranch
protected static boolean canCarveBranch(ChunkPos pos, double x, double z, int branchIndex, int branchCount, float baseWidth)- Mappings:
Namespace Name Mixin selector official aLcqf;a(Lbvc;DDIIF)Zintermediary method_33976Lnet/minecraft/class_2939;method_33976(Lnet/minecraft/class_1923;DDIIF)Znamed canCarveBranchLnet/minecraft/world/gen/carver/Carver;canCarveBranch(Lnet/minecraft/util/math/ChunkPos;DDIIF)Z
-
isDebug
- Mappings:
Namespace Name Mixin selector official bLcqf;b(Lcpw;)Zintermediary method_33980Lnet/minecraft/class_2939;method_33980(Lnet/minecraft/class_5871;)Znamed isDebugLnet/minecraft/world/gen/carver/Carver;isDebug(Lnet/minecraft/world/gen/carver/CarverConfig;)Z
-