Class WorldCarver<C extends CarverConfiguration>
java.lang.Object
net.minecraft.world.level.levelgen.carver.WorldCarver<C>
- Direct Known Subclasses:
CanyonWorldCarver
,CaveWorldCarver
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final BlockState
static final WorldCarver<CanyonCarverConfiguration>
static final WorldCarver<CaveCarverConfiguration>
protected static final BlockState
private final com.mojang.serialization.Codec<ConfiguredWorldCarver<C>>
protected static final FluidState
static final WorldCarver<CaveCarverConfiguration>
protected static final FluidState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
canReach
(ChunkPos p_159368_, double p_159369_, double p_159370_, int p_159371_, int p_159372_, float p_159373_) protected boolean
canReplaceBlock
(C p_224911_, BlockState p_224912_) abstract boolean
carve
(CarvingContext p_224913_, C p_224914_, ChunkAccess p_224915_, Function<BlockPos, Holder<Biome>> p_224916_, RandomSource p_224917_, Aquifer p_224918_, ChunkPos p_224919_, CarvingMask p_224920_) protected boolean
carveBlock
(CarvingContext p_190744_, C p_190745_, ChunkAccess p_190746_, Function<BlockPos, Holder<Biome>> p_190747_, CarvingMask p_190748_, BlockPos.MutableBlockPos p_190749_, BlockPos.MutableBlockPos p_190750_, Aquifer p_190751_, org.apache.commons.lang3.mutable.MutableBoolean p_190752_) protected boolean
carveEllipsoid
(CarvingContext p_190754_, C p_190755_, ChunkAccess p_190756_, Function<BlockPos, Holder<Biome>> p_190757_, Aquifer p_190758_, double p_190759_, double p_190760_, double p_190761_, double p_190762_, double p_190763_, CarvingMask p_190764_, WorldCarver.CarveSkipChecker p_190765_) configured
(C p_65064_) com.mojang.serialization.Codec<ConfiguredWorldCarver<C>>
private BlockState
getCarveState
(CarvingContext p_159419_, C p_159420_, BlockPos p_159421_, Aquifer p_159422_) private static BlockState
getDebugState
(CarverConfiguration p_159382_, BlockState p_159383_) int
getRange()
private static boolean
isDebugEnabled
(CarverConfiguration p_159424_) abstract boolean
isStartChunk
(C p_224908_, RandomSource p_224909_) private static <C extends CarverConfiguration,
F extends WorldCarver<C>>
F
-
Field Details
-
CAVE
-
NETHER_CAVE
-
CANYON
-
AIR
-
CAVE_AIR
-
WATER
-
LAVA
-
liquids
-
configuredCodec
private final com.mojang.serialization.Codec<ConfiguredWorldCarver<C extends CarverConfiguration>> configuredCodec
-
-
Constructor Details
-
WorldCarver
-
-
Method Details
-
register
private static <C extends CarverConfiguration,F extends WorldCarver<C>> F register(String p_65066_, F p_65067_) -
configured
-
configuredCodec
-
getRange
public int getRange() -
carveEllipsoid
protected boolean carveEllipsoid(CarvingContext p_190754_, C p_190755_, ChunkAccess p_190756_, Function<BlockPos, Holder<Biome>> p_190757_, Aquifer p_190758_, double p_190759_, double p_190760_, double p_190761_, double p_190762_, double p_190763_, CarvingMask p_190764_, WorldCarver.CarveSkipChecker p_190765_) -
carveBlock
protected boolean carveBlock(CarvingContext p_190744_, C p_190745_, ChunkAccess p_190746_, Function<BlockPos, Holder<Biome>> p_190747_, CarvingMask p_190748_, BlockPos.MutableBlockPos p_190749_, BlockPos.MutableBlockPos p_190750_, Aquifer p_190751_, org.apache.commons.lang3.mutable.MutableBoolean p_190752_) -
getCarveState
@Nullable private BlockState getCarveState(CarvingContext p_159419_, C p_159420_, BlockPos p_159421_, Aquifer p_159422_) -
getDebugState
-
carve
public abstract boolean carve(CarvingContext p_224913_, C p_224914_, ChunkAccess p_224915_, Function<BlockPos, Holder<Biome>> p_224916_, RandomSource p_224917_, Aquifer p_224918_, ChunkPos p_224919_, CarvingMask p_224920_) -
isStartChunk
-
canReplaceBlock
-
canReach
protected static boolean canReach(ChunkPos p_159368_, double p_159369_, double p_159370_, int p_159371_, int p_159372_, float p_159373_) -
isDebugEnabled
-