Package net.minecraft.world.gen.carver
Class CaveCarver
- Direct Known Subclasses:
NetherCaveCarver,UnderwaterCaveCarver
public class CaveCarver extends Carver<ProbabilityConfig>
- Mappings:
Namespace Name official cncintermediary net/minecraft/class_2925named net/minecraft/world/gen/carver/CaveCarver
-
Field Summary
Fields inherited from class net.minecraft.world.gen.carver.Carver
AIR, alwaysCarvableBlocks, CANYON, carvableFluids, CAVE, CAVE_AIR, heightLimit, LAVA, NETHER_CAVE, UNDERWATER_CANYON, UNDERWATER_CAVE, WATER -
Constructor Summary
Constructors Constructor Description CaveCarver(com.mojang.serialization.Codec<ProbabilityConfig> configCodec, int heightLimit) -
Method Summary
Modifier and Type Method Description booleancarve(Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, int int3, int int4, int int5, int int6, BitSet bitSet, ProbabilityConfig probabilityConfig)protected voidcarveCave(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float yaw, double yawPitchRatio, BitSet carvingMask)protected voidcarveTunnels(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, BitSet carvingMask)protected intgetCaveY(Random random)protected intgetMaxCaveCount()protected doublegetTunnelSystemHeightWidthRatio()protected floatgetTunnelSystemWidth(Random random)protected booleanisPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)booleanshouldCarve(Random random, int int2, int int3, ProbabilityConfig probabilityConfig)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>Lcni;<init>(Lcom/mojang/serialization/Codec;I)Vintermediary <init>Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;I)Vnamed <init>Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;I)V
-
-
Method Details
-
shouldCarve
- Specified by:
shouldCarvein classCarver<ProbabilityConfig>- Mappings:
Namespace Name Mixin selector official aLcnc;a(Ljava/util/Random;IILcrx;)Zintermediary method_12676Lnet/minecraft/class_2925;method_12676(Ljava/util/Random;IILnet/minecraft/class_3133;)Znamed shouldCarveLnet/minecraft/world/gen/carver/CaveCarver;shouldCarve(Ljava/util/Random;IILnet/minecraft/world/gen/ProbabilityConfig;)Z
-
carve
public boolean carve(Chunk chunk, Function<BlockPos,Biome> function, Random random, int int2, int int3, int int4, int int5, int int6, BitSet bitSet, ProbabilityConfig probabilityConfig)- Specified by:
carvein classCarver<ProbabilityConfig>- Mappings:
Namespace Name Mixin selector official aLcnc;a(Lcjl;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lcrx;)Zintermediary method_12673Lnet/minecraft/class_2925;method_12673(Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/class_3133;)Znamed carveLnet/minecraft/world/gen/carver/CaveCarver;carve(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/world/gen/ProbabilityConfig;)Z
-
getMaxCaveCount
protected int getMaxCaveCount()- Mappings:
Namespace Name Mixin selector official aLcnc;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 aLcnc;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 bLcnc;b()Dintermediary method_16578Lnet/minecraft/class_2925;method_16578()Dnamed getTunnelSystemHeightWidthRatioLnet/minecraft/world/gen/carver/CaveCarver;getTunnelSystemHeightWidthRatio()D
-
getCaveY
- Mappings:
Namespace Name Mixin selector official bLcnc;b(Ljava/util/Random;)Iintermediary method_16579Lnet/minecraft/class_2925;method_16579(Ljava/util/Random;)Inamed getCaveYLnet/minecraft/world/gen/carver/CaveCarver;getCaveY(Ljava/util/Random;)I
-
carveCave
protected void carveCave(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float yaw, double yawPitchRatio, BitSet carvingMask)- Mappings:
Namespace Name Mixin selector official aLcnc;a(Lcjl;Ljava/util/function/Function;JIIIDDDFDLjava/util/BitSet;)Vintermediary method_12674Lnet/minecraft/class_2925;method_12674(Lnet/minecraft/class_2791;Ljava/util/function/Function;JIIIDDDFDLjava/util/BitSet;)Vnamed carveCaveLnet/minecraft/world/gen/carver/CaveCarver;carveCave(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIIIDDDFDLjava/util/BitSet;)V
-
carveTunnels
protected void carveTunnels(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int mainChunkX, int mainChunkZ, double x, double y, double z, float width, float yaw, float pitch, int branchStartIndex, int branchCount, double yawPitchRatio, BitSet carvingMask)- Mappings:
Namespace Name Mixin selector official aLcnc;a(Lcjl;Ljava/util/function/Function;JIIIDDDFFFIIDLjava/util/BitSet;)Vintermediary method_12675Lnet/minecraft/class_2925;method_12675(Lnet/minecraft/class_2791;Ljava/util/function/Function;JIIIDDDFFFIIDLjava/util/BitSet;)Vnamed carveTunnelsLnet/minecraft/world/gen/carver/CaveCarver;carveTunnels(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIIIDDDFFFIIDLjava/util/BitSet;)V
-
isPositionExcluded
protected boolean isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)- Specified by:
isPositionExcludedin classCarver<ProbabilityConfig>- Mappings:
Namespace Name Mixin selector official aLcni;a(DDDI)Zintermediary method_16582Lnet/minecraft/class_2939;method_16582(DDDI)Znamed isPositionExcludedLnet/minecraft/world/gen/carver/Carver;isPositionExcluded(DDDI)Z
-