Package net.minecraft.world.gen.carver
Class CaveCarver
- Direct Known Subclasses:
NetherCaveCarver
public class CaveCarver extends Carver<CarverConfig>
- Mappings:
Namespace Name official coiintermediary 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<CarverConfig> configCodec) -
Method Summary
Modifier and Type Method Description booleancarve(CarverContext context, CarverConfig config, Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, int seaLevel, ChunkPos pos, BitSet carvingMask)protected voidcarveCave(CarverContext context, CarverConfig 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, CarverConfig 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 intgetCaveY(CarverContext context, Random random)protected intgetMaxCaveCount()protected doublegetTunnelSystemHeightWidthRatio()protected floatgetTunnelSystemWidth(Random random)private static booleanisPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, double floorY)booleanshouldCarve(CarverConfig config, 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>Lcol;<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<CarverConfig>- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcof;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
-
carve
public boolean carve(CarverContext context, CarverConfig config, Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, int seaLevel, ChunkPos pos, BitSet carvingMask)- Specified by:
carvein classCarver<CarverConfig>- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;Ljava/util/Random;ILbtv;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;ILnet/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;ILnet/minecraft/util/math/ChunkPos;Ljava/util/BitSet;)Z
-
getMaxCaveCount
protected int getMaxCaveCount()- Mappings:
Namespace Name Mixin selector official aLcoi;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 aLcoi;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 bLcoi;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 aLcoi;a(Lcoh;Ljava/util/Random;)Iintermediary method_16579Lnet/minecraft/class_2925;method_16579(Lnet/minecraft/class_5873;Ljava/util/Random;)Inamed getCaveYLnet/minecraft/world/gen/carver/CaveCarver;getCaveY(Lnet/minecraft/world/gen/carver/CarverContext;Ljava/util/Random;)I
-
carveCave
protected void carveCave(CarverContext context, CarverConfig 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 aLcoi;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;JIDDDFDLjava/util/BitSet;Lcol$a;)Vintermediary method_12674Lnet/minecraft/class_2925;method_12674(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;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/world/gen/carver/CarverConfig;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, CarverConfig 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 aLcoi;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;JIDDDDDFFFIIDLjava/util/BitSet;Lcol$a;)Vintermediary method_12675Lnet/minecraft/class_2925;method_12675(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;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/world/gen/carver/CarverConfig;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 aLcoi;a(DDDD)Zintermediary method_33974Lnet/minecraft/class_2925;method_33974(DDDD)Znamed isPositionExcludedLnet/minecraft/world/gen/carver/CaveCarver;isPositionExcluded(DDDD)Z
-