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
public abstract class Carver<C extends CarverConfig> extends Object
- Mappings:
Namespace Name official cniintermediary net/minecraft/class_2939named net/minecraft/world/gen/carver/Carver
-
Field Summary
Fields Modifier and Type Field Description protected static BlockStateAIRprotected Set<Block>alwaysCarvableBlocksstatic Carver<ProbabilityConfig>CANYONprotected Set<Fluid>carvableFluidsstatic Carver<ProbabilityConfig>CAVEprotected static BlockStateCAVE_AIRprivate com.mojang.serialization.Codec<ConfiguredCarver<C>>codecprotected intheightLimitprotected static FluidStateLAVAstatic Carver<ProbabilityConfig>NETHER_CAVEstatic Carver<ProbabilityConfig>UNDERWATER_CANYONstatic Carver<ProbabilityConfig>UNDERWATER_CAVEprotected static FluidStateWATER -
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected booleancanAlwaysCarveBlock(BlockState state)protected booleancanCarveBlock(BlockState state, BlockState stateAbove)protected booleancanCarveBranch(int mainChunkX, int mainChunkZ, double x, double z, int branch, int branchCount, float baseWidth)abstract booleancarve(Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, int seaLevel, int chunkX, int chunkZ, int mainChunkX, int mainChunkZ, BitSet carvingMask, C config)protected booleancarveAtPoint(Chunk chunk, Function<BlockPos,Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable currentPos, BlockPos.Mutable upperPos, BlockPos.Mutable lowerPos, int seaLevel, int mainChunkX, int mainChunkZ, int x, int z, int relativeX, int y, int relativeZ, MutableBoolean visitedSurface)protected booleancarveRegion(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int chunkX, int chunkZ, double x, double y, double z, double yaw, double pitch, BitSet carvingMask)ConfiguredCarver<C>configure(C config)intgetBranchFactor()com.mojang.serialization.Codec<ConfiguredCarver<C>>getCodec()private booleanisOnBoundary(int minX, int maxX, int minZ, int maxZ, int x, int z)protected abstract booleanisPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)protected booleanisRegionUncarvable(Chunk chunk, int mainChunkX, int mainChunkZ, int relMinX, int relMaxX, int minY, int maxY, int relMinZ, int relMaxZ)private static <C extends CarverConfig, F extends Carver<C>>
Fregister(String name, F carver)abstract booleanshouldCarve(Random random, int chunkX, int chunkZ, C config)
-
Field Details
-
CAVE
- Mappings:
Namespace Name Mixin selector official aLcni;a:Lcni;intermediary field_13304Lnet/minecraft/class_2939;field_13304: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 bLcni;b:Lcni;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;
-
CANYON
- Mappings:
Namespace Name Mixin selector official cLcni;c:Lcni;intermediary field_13295Lnet/minecraft/class_2939;field_13295:Lnet/minecraft/class_2939;named CANYONLnet/minecraft/world/gen/carver/Carver;CANYON:Lnet/minecraft/world/gen/carver/Carver;
-
UNDERWATER_CANYON
- Mappings:
Namespace Name Mixin selector official dLcni;d:Lcni;intermediary field_13303Lnet/minecraft/class_2939;field_13303: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 eLcni;e:Lcni;intermediary field_13300Lnet/minecraft/class_2939;field_13300:Lnet/minecraft/class_2939;named UNDERWATER_CAVELnet/minecraft/world/gen/carver/Carver;UNDERWATER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
-
AIR
- Mappings:
Namespace Name Mixin selector official fLcni;f:Lcht;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 gLcni;g:Lcht;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 hLcni;h:Ldal;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 iLcni;i:Ldal;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 jLcni;j: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 kLcni;k: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 mLcni;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;
-
heightLimit
protected final int heightLimit- Mappings:
Namespace Name Mixin selector official lLcni;l:Iintermediary field_16653Lnet/minecraft/class_2939;field_16653:Inamed heightLimitLnet/minecraft/world/gen/carver/Carver;heightLimit:I
-
-
Constructor Details
-
Carver
- 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
-
register
- Mappings:
Namespace Name Mixin selector official aLcni;a(Ljava/lang/String;Lcni;)Lcni;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 aLcni;a(Lcnb;)Lcnd;intermediary method_28614Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_2920;)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 cLcni;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 dLcni;d()Iintermediary method_12710Lnet/minecraft/class_2939;method_12710()Inamed getBranchFactorLnet/minecraft/world/gen/carver/Carver;getBranchFactor()I
-
carveRegion
protected boolean carveRegion(Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, int seaLevel, int chunkX, int chunkZ, double x, double y, double z, double yaw, double pitch, BitSet carvingMask)- Mappings:
Namespace Name Mixin selector official aLcni;a(Lcjl;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Zintermediary method_16580Lnet/minecraft/class_2939;method_16580(Lnet/minecraft/class_2791;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Znamed carveRegionLnet/minecraft/world/gen/carver/Carver;carveRegion(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Z
-
carveAtPoint
protected boolean carveAtPoint(Chunk chunk, Function<BlockPos,Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable currentPos, BlockPos.Mutable upperPos, BlockPos.Mutable lowerPos, int seaLevel, int mainChunkX, int mainChunkZ, int x, int z, int relativeX, int y, int relativeZ, MutableBoolean visitedSurface)- Mappings:
Namespace Name Mixin selector official aLcni;a(Lcjl;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lfx$a;Lfx$a;Lfx$a;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Zintermediary method_16581Lnet/minecraft/class_2939;method_16581(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_2338$class_2339;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Znamed carveAtPointLnet/minecraft/world/gen/carver/Carver;carveAtPoint(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/util/math/BlockPos$Mutable;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Z
-
carve
public abstract boolean carve(Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, int seaLevel, int chunkX, int chunkZ, int mainChunkX, int mainChunkZ, BitSet carvingMask, C config)- Mappings:
Namespace Name Mixin selector official aLcni;a(Lcjl;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lcnb;)Zintermediary method_12702Lnet/minecraft/class_2939;method_12702(Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/class_2920;)Znamed carveLnet/minecraft/world/gen/carver/Carver;carve(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/world/gen/carver/CarverConfig;)Z
-
shouldCarve
- Mappings:
Namespace Name Mixin selector official aLcni;a(Ljava/util/Random;IILcnb;)Zintermediary method_12705Lnet/minecraft/class_2939;method_12705(Ljava/util/Random;IILnet/minecraft/class_2920;)Znamed shouldCarveLnet/minecraft/world/gen/carver/Carver;shouldCarve(Ljava/util/Random;IILnet/minecraft/world/gen/carver/CarverConfig;)Z
-
canAlwaysCarveBlock
- Mappings:
Namespace Name Mixin selector official aLcni;a(Lcht;)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 aLcni;a(Lcht;Lcht;)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 mainChunkX, int mainChunkZ, int relMinX, int relMaxX, int minY, int maxY, int relMinZ, int relMaxZ)- Mappings:
Namespace Name Mixin selector official aLcni;a(Lcjl;IIIIIIII)Zintermediary method_12711Lnet/minecraft/class_2939;method_12711(Lnet/minecraft/class_2791;IIIIIIII)Znamed isRegionUncarvableLnet/minecraft/world/gen/carver/Carver;isRegionUncarvable(Lnet/minecraft/world/chunk/Chunk;IIIIIIII)Z
-
isOnBoundary
private boolean isOnBoundary(int minX, int maxX, int minZ, int maxZ, int x, int z)- Mappings:
Namespace Name Mixin selector official aLcni;a(IIIIII)Zintermediary method_12706Lnet/minecraft/class_2939;method_12706(IIIIII)Znamed isOnBoundaryLnet/minecraft/world/gen/carver/Carver;isOnBoundary(IIIIII)Z
-
canCarveBranch
protected boolean canCarveBranch(int mainChunkX, int mainChunkZ, double x, double z, int branch, int branchCount, float baseWidth)- Mappings:
Namespace Name Mixin selector official aLcni;a(IIDDIIF)Zintermediary method_12707Lnet/minecraft/class_2939;method_12707(IIDDIIF)Znamed canCarveBranchLnet/minecraft/world/gen/carver/Carver;canCarveBranch(IIDDIIF)Z
-
isPositionExcluded
protected abstract boolean isPositionExcluded(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)- 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
-