Package net.minecraft.world.gen.carver
Class CaveCarver
- Direct Known Subclasses:
NetherCaveCarver
public class CaveCarver extends Carver<class_6108>
- Mappings:
Namespace Name official cpointermediary net/minecraft/class_2925named net/minecraft/world/gen/carver/CaveCarver
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.gen.carver.Carver
Carver.SkipPredicate -
Field Summary
Fields inherited from class net.minecraft.world.gen.carver.Carver
AIR, alwaysCarvableBlocks, carvableFluids, CAVE, CAVE_AIR, LAVA, NETHER_CAVE, RAVINE, WATER -
Constructor Summary
Constructors Constructor Description CaveCarver(com.mojang.serialization.Codec<class_6108> configCodec) -
Method Summary
Modifier and Type Method Description booleancarve(CarverContext carverContext, class_6108 class_6108, Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, ChunkPos chunkPos, BitSet bitSet)protected voidcarveCave(CarverContext context, class_6108 config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, double x, double y, double z, float yaw, double yawPitchRatio, BitSet carvingMask, Carver.SkipPredicate skipPredicate)protected voidcarveTunnels(CarverContext context, class_6108 config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, double x, double y, double z, double horizontalScale, double verticalScale, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, BitSet carvingMask, Carver.SkipPredicate skipPredicate)protected intgetMaxCaveCount()protected doublegetTunnelSystemHeightWidthRatio()protected floatgetTunnelSystemWidth(Random random)private static booleanisPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, double floorY)booleanshouldCarve(class_6108 class_6108, Random random)Methods inherited from class net.minecraft.world.gen.carver.Carver
canAlwaysCarveBlock, canCarveBlock, canCarveBranch, carveAtPoint, carveRegion, configure, getBranchFactor, getCodec, isRegionUncarvable
-
Constructor Details
-
CaveCarver
- Mappings:
Namespace Name Mixin selector official <init>Lcpr;<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
-
shouldCarve
- Specified by:
shouldCarvein classCarver<class_6108>- Mappings:
Namespace Name Mixin selector official aLcpo;a(Lcpn;Ljava/util/Random;)Zintermediary method_35358Lnet/minecraft/class_2925;method_35358(Lnet/minecraft/class_6108;Ljava/util/Random;)Znamed shouldCarveLnet/minecraft/world/gen/carver/CaveCarver;shouldCarve(Lnet/minecraft/class_6108;Ljava/util/Random;)Z
-
carve
public boolean carve(CarverContext carverContext, class_6108 class_6108, Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, ChunkPos chunkPos, BitSet bitSet)- Specified by:
carvein classCarver<class_6108>- Mappings:
Namespace Name Mixin selector official aLcpo;a(Lcpm;Lcpn;Lclk;Ljava/util/function/Function;Ljava/util/Random;ILbuw;Ljava/util/BitSet;)Zintermediary method_35357Lnet/minecraft/class_2925;method_35357(Lnet/minecraft/class_5873;Lnet/minecraft/class_6108;Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;ILnet/minecraft/class_1923;Ljava/util/BitSet;)Znamed carveLnet/minecraft/world/gen/carver/CaveCarver;carve(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/class_6108;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/Random;ILnet/minecraft/util/math/ChunkPos;Ljava/util/BitSet;)Z
-
getMaxCaveCount
protected int getMaxCaveCount()- Mappings:
Namespace Name Mixin selector official aLcpo;a()Iintermediary method_16577Lnet/minecraft/class_2925;method_16577()Inamed getMaxCaveCountLnet/minecraft/world/gen/carver/CaveCarver;getMaxCaveCount()I
-
getTunnelSystemWidth
- Mappings:
Namespace Name Mixin selector official aLcpo;a(Ljava/util/Random;)Fintermediary method_16576Lnet/minecraft/class_2925;method_16576(Ljava/util/Random;)Fnamed getTunnelSystemWidthLnet/minecraft/world/gen/carver/CaveCarver;getTunnelSystemWidth(Ljava/util/Random;)F
-
getTunnelSystemHeightWidthRatio
protected double getTunnelSystemHeightWidthRatio()- Mappings:
Namespace Name Mixin selector official bLcpo;b()Dintermediary method_16578Lnet/minecraft/class_2925;method_16578()Dnamed getTunnelSystemHeightWidthRatioLnet/minecraft/world/gen/carver/CaveCarver;getTunnelSystemHeightWidthRatio()D
-
carveCave
protected void carveCave(CarverContext context, class_6108 config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, double x, double y, double z, float yaw, double yawPitchRatio, BitSet carvingMask, Carver.SkipPredicate skipPredicate)- Mappings:
Namespace Name Mixin selector official aLcpo;a(Lcpm;Lcpn;Lclk;Ljava/util/function/Function;JIDDDFDLjava/util/BitSet;Lcpr$a;)Vintermediary method_12674Lnet/minecraft/class_2925;method_12674(Lnet/minecraft/class_5873;Lnet/minecraft/class_6108;Lnet/minecraft/class_2791;Ljava/util/function/Function;JIDDDFDLjava/util/BitSet;Lnet/minecraft/class_2939$class_5874;)Vnamed carveCaveLnet/minecraft/world/gen/carver/CaveCarver;carveCave(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/class_6108;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIDDDFDLjava/util/BitSet;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)V
-
carveTunnels
protected void carveTunnels(CarverContext context, class_6108 config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, double x, double y, double z, double horizontalScale, double verticalScale, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, BitSet carvingMask, Carver.SkipPredicate skipPredicate)- Mappings:
Namespace Name Mixin selector official aLcpo;a(Lcpm;Lcpn;Lclk;Ljava/util/function/Function;JIDDDDDFFFIIDLjava/util/BitSet;Lcpr$a;)Vintermediary method_12675Lnet/minecraft/class_2925;method_12675(Lnet/minecraft/class_5873;Lnet/minecraft/class_6108;Lnet/minecraft/class_2791;Ljava/util/function/Function;JIDDDDDFFFIIDLjava/util/BitSet;Lnet/minecraft/class_2939$class_5874;)Vnamed carveTunnelsLnet/minecraft/world/gen/carver/CaveCarver;carveTunnels(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/class_6108;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIDDDDDFFFIIDLjava/util/BitSet;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)V
-
isPositionExcluded
private static boolean isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, double floorY)- Mappings:
Namespace Name Mixin selector official aLcpo;a(DDDD)Zintermediary method_33974Lnet/minecraft/class_2925;method_33974(DDDD)Znamed isPositionExcludedLnet/minecraft/world/gen/carver/CaveCarver;isPositionExcluded(DDDD)Z
-