Class WorldCarver<C extends CarverConfiguration>
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<WorldCarver<?>>
net.minecraft.world.level.levelgen.carver.WorldCarver<C>
- All Implemented Interfaces:
IForgeRegistryEntry<WorldCarver<?>>
- Direct Known Subclasses:
CanyonWorldCarver
,CaveWorldCarver
public abstract class WorldCarver<C extends CarverConfiguration>
extends ForgeRegistryEntry<WorldCarver<?>>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
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
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
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
(BlockState p_65011_) abstract boolean
carve
(CarvingContext p_190766_, C p_190767_, ChunkAccess p_190768_, Function<BlockPos, Holder<Biome>> p_190769_, Random p_190770_, Aquifer p_190771_, ChunkPos p_190772_, CarvingMask p_190773_) 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_159384_, Random p_159385_) private static <C extends CarverConfiguration,
F extends WorldCarver<C>>
FMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
CAVE
-
NETHER_CAVE
-
CANYON
-
AIR
-
CAVE_AIR
-
WATER
-
LAVA
-
replaceableBlocks
-
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_190766_, C p_190767_, ChunkAccess p_190768_, Function<BlockPos, Holder<Biome>> p_190769_, Random p_190770_, Aquifer p_190771_, ChunkPos p_190772_, CarvingMask p_190773_) -
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
-