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 BlockState
static WorldCarver<CanyonCarverConfiguration>
static WorldCarver<CaveCarverConfiguration>
protected static BlockState
private com.mojang.serialization.Codec<ConfiguredWorldCarver<C>>
protected static FluidState
static WorldCarver<CaveCarverConfiguration>
protected static BaseStoneSource
static WorldCarver<CanyonCarverConfiguration>
static WorldCarver<CaveCarverConfiguration>
protected static 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_)
protected boolean
canReplaceBlock(BlockState p_65013_, BlockState p_65014_)
abstract boolean
carve(CarvingContext p_159410_, C p_159411_, ChunkAccess p_159412_, Function<BlockPos,Biome> p_159413_, Random p_159414_, Aquifer p_159415_, ChunkPos p_159416_, BitSet p_159417_)
protected boolean
carveBlock(CarvingContext p_159400_, C p_159401_, ChunkAccess p_159402_, Function<BlockPos,Biome> p_159403_, BitSet p_159404_, Random p_159405_, BlockPos.MutableBlockPos p_159406_, BlockPos.MutableBlockPos p_159407_, Aquifer p_159408_, org.apache.commons.lang3.mutable.MutableBoolean p_159409_)
protected boolean
carveEllipsoid(CarvingContext p_159387_, C p_159388_, ChunkAccess p_159389_, Function<BlockPos,Biome> p_159390_, long p_159391_, Aquifer p_159392_, double p_159393_, double p_159394_, double p_159395_, double p_159396_, double p_159397_, BitSet p_159398_, WorldCarver.CarveSkipChecker p_159399_)
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()
protected boolean
hasDisallowedLiquid(ChunkAccess p_159374_, int p_159375_, int p_159376_, int p_159377_, int p_159378_, int p_159379_, int p_159380_)
private static boolean
isDebugEnabled(CarverConfiguration p_159424_)
private static boolean
isEdge(int p_65004_, int p_65005_, int p_65006_, int p_65007_, int p_65008_, int p_65009_)
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
-
UNDERWATER_CANYON
-
UNDERWATER_CAVE
-
STONE_SOURCE
-
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_159387_, C p_159388_, ChunkAccess p_159389_, Function<BlockPos,Biome> p_159390_, long p_159391_, Aquifer p_159392_, double p_159393_, double p_159394_, double p_159395_, double p_159396_, double p_159397_, BitSet p_159398_, WorldCarver.CarveSkipChecker p_159399_) -
carveBlock
protected boolean carveBlock(CarvingContext p_159400_, C p_159401_, ChunkAccess p_159402_, Function<BlockPos,Biome> p_159403_, BitSet p_159404_, Random p_159405_, BlockPos.MutableBlockPos p_159406_, BlockPos.MutableBlockPos p_159407_, Aquifer p_159408_, org.apache.commons.lang3.mutable.MutableBoolean p_159409_) -
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_159410_, C p_159411_, ChunkAccess p_159412_, Function<BlockPos,Biome> p_159413_, Random p_159414_, Aquifer p_159415_, ChunkPos p_159416_, BitSet p_159417_) -
isStartChunk
-
canReplaceBlock
-
canReplaceBlock
-
hasDisallowedLiquid
protected boolean hasDisallowedLiquid(ChunkAccess p_159374_, int p_159375_, int p_159376_, int p_159377_, int p_159378_, int p_159379_, int p_159380_) -
isEdge
private static boolean isEdge(int p_65004_, int p_65005_, int p_65006_, int p_65007_, int p_65008_, int p_65009_) -
canReach
protected static boolean canReach(ChunkPos p_159368_, double p_159369_, double p_159370_, int p_159371_, int p_159372_, float p_159373_) -
isDebugEnabled
-