Class SurfaceRules.Context
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
- Enclosing class:
SurfaceRules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final class(package private) static final class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SurfaceRules.Condition(package private) int(package private) int(package private) int(package private) final ChunkAccess(package private) final WorldGenerationContext(package private) final SurfaceRules.Conditionprivate static final intprivate longprivate longprivate long(package private) long(package private) longprivate intprivate final NoiseChunk(package private) final BlockPos.MutableBlockPosprivate final int[](package private) final RandomState(package private) final SurfaceRules.Condition(package private) int(package private) intprivate static final intprivate static final intprivate static final int(package private) intprivate double(package private) final SurfaceSystem(package private) final SurfaceRules.Condition(package private) int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContext(SurfaceSystem pSystem, RandomState pRandomState, ChunkAccess pChunk, NoiseChunk pNoiseChunk, Function<BlockPos, Holder<Biome>> pBiomeGetter, Registry<Biome> p_224621_, WorldGenerationContext pContext) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intblockCoordToSurfaceCell(int pBlockCoord) protected intprotected doubleprivate static intsurfaceCellToBlockCoord(int pSurfaceCell) protected voidupdateXZ(int pBlockX, int pBlockZ) protected voidupdateY(int pStoneDepthAbove, int pStoneDepthBelow, int pWaterHeight, int pBlockX, int pBlockY, int pBlockZ)
-
Field Details
-
HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE
private static final int HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE- See Also:
-
SURFACE_CELL_BITS
private static final int SURFACE_CELL_BITS- See Also:
-
SURFACE_CELL_SIZE
private static final int SURFACE_CELL_SIZE- See Also:
-
SURFACE_CELL_MASK
private static final int SURFACE_CELL_MASK- See Also:
-
system
-
temperature
-
steep
-
hole
-
abovePreliminarySurface
-
randomState
-
chunk
-
noiseChunk
-
biomeGetter
-
context
-
lastPreliminarySurfaceCellOrigin
private long lastPreliminarySurfaceCellOrigin -
preliminarySurfaceCache
private final int[] preliminarySurfaceCache -
lastUpdateXZ
long lastUpdateXZ -
blockX
int blockX -
blockZ
int blockZ -
surfaceDepth
int surfaceDepth -
lastSurfaceDepth2Update
private long lastSurfaceDepth2Update -
surfaceSecondary
private double surfaceSecondary -
lastMinSurfaceLevelUpdate
private long lastMinSurfaceLevelUpdate -
minSurfaceLevel
private int minSurfaceLevel -
lastUpdateY
long lastUpdateY -
pos
-
biome
-
blockY
int blockY -
waterHeight
int waterHeight -
stoneDepthBelow
int stoneDepthBelow -
stoneDepthAbove
int stoneDepthAbove
-
-
Constructor Details
-
Context
protected Context(SurfaceSystem pSystem, RandomState pRandomState, ChunkAccess pChunk, NoiseChunk pNoiseChunk, Function<BlockPos, Holder<Biome>> pBiomeGetter, Registry<Biome> p_224621_, WorldGenerationContext pContext)
-
-
Method Details
-
updateXZ
protected void updateXZ(int pBlockX, int pBlockZ) -
updateY
protected void updateY(int pStoneDepthAbove, int pStoneDepthBelow, int pWaterHeight, int pBlockX, int pBlockY, int pBlockZ) -
getSurfaceSecondary
protected double getSurfaceSecondary() -
blockCoordToSurfaceCell
private static int blockCoordToSurfaceCell(int pBlockCoord) -
surfaceCellToBlockCoord
private static int surfaceCellToBlockCoord(int pSurfaceCell) -
getMinSurfaceLevel
protected int getMinSurfaceLevel()
-