Package net.minecraft.world.gen.carver
Class CaveCarver
- Direct Known Subclasses:
NetherCaveCarver
public class CaveCarver extends Carver<CarverConfig>
- Mappings:
Namespace Name official coi
intermediary net/minecraft/class_2925
named 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 boolean
carve(CarverContext context, CarverConfig config, Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, int seaLevel, ChunkPos pos, BitSet carvingMask)
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)
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)
protected int
getCaveY(CarverContext context, Random random)
protected int
getMaxCaveCount()
protected double
getTunnelSystemHeightWidthRatio()
protected float
getTunnelSystemWidth(Random random)
private static boolean
isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, double floorY)
boolean
shouldCarve(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;)V
intermediary <init>
Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;)V
named <init>
Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;)V
-
-
Method Details
-
shouldCarve
- Specified by:
shouldCarve
in classCarver<CarverConfig>
- Mappings:
Namespace Name Mixin selector official a
Lcol;a(Lcof;Ljava/util/Random;)Z
intermediary method_12705
Lnet/minecraft/class_2939;method_12705(Lnet/minecraft/class_5871;Ljava/util/Random;)Z
named shouldCarve
Lnet/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:
carve
in classCarver<CarverConfig>
- Mappings:
Namespace Name Mixin selector official a
Lcol;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;Ljava/util/Random;ILbtv;Ljava/util/BitSet;)Z
intermediary method_12702
Lnet/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;)Z
named carve
Lnet/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 a
Lcoi;a()I
intermediary method_16577
Lnet/minecraft/class_2925;method_16577()I
named getMaxCaveCount
Lnet/minecraft/world/gen/carver/CaveCarver;getMaxCaveCount()I
-
getTunnelSystemWidth
- Mappings:
Namespace Name Mixin selector official a
Lcoi;a(Ljava/util/Random;)F
intermediary method_16576
Lnet/minecraft/class_2925;method_16576(Ljava/util/Random;)F
named getTunnelSystemWidth
Lnet/minecraft/world/gen/carver/CaveCarver;getTunnelSystemWidth(Ljava/util/Random;)F
-
getTunnelSystemHeightWidthRatio
protected double getTunnelSystemHeightWidthRatio()- Mappings:
Namespace Name Mixin selector official b
Lcoi;b()D
intermediary method_16578
Lnet/minecraft/class_2925;method_16578()D
named getTunnelSystemHeightWidthRatio
Lnet/minecraft/world/gen/carver/CaveCarver;getTunnelSystemHeightWidthRatio()D
-
getCaveY
- Mappings:
Namespace Name Mixin selector official a
Lcoi;a(Lcoh;Ljava/util/Random;)I
intermediary method_16579
Lnet/minecraft/class_2925;method_16579(Lnet/minecraft/class_5873;Ljava/util/Random;)I
named getCaveY
Lnet/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 a
Lcoi;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;JIDDDFDLjava/util/BitSet;Lcol$a;)V
intermediary method_12674
Lnet/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;)V
named carveCave
Lnet/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 a
Lcoi;a(Lcoh;Lcof;Lckh;Ljava/util/function/Function;JIDDDDDFFFIIDLjava/util/BitSet;Lcol$a;)V
intermediary method_12675
Lnet/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;)V
named carveTunnels
Lnet/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 a
Lcoi;a(DDDD)Z
intermediary method_33974
Lnet/minecraft/class_2925;method_33974(DDDD)Z
named isPositionExcluded
Lnet/minecraft/world/gen/carver/CaveCarver;isPositionExcluded(DDDD)Z
-