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.Condition
private static final int
private long
private long
private long
(package private) long
(package private) long
private int
private final NoiseChunk
(package private) final BlockPos.MutableBlockPos
private final int[]
(package private) final RandomState
(package private) final SurfaceRules.Condition
(package private) int
(package private) int
private static final int
private static final int
private static final int
(package private) int
private double
(package private) final SurfaceSystem
(package private) final SurfaceRules.Condition
(package private) int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Context
(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, Registry<Biome> p_224621_, WorldGenerationContext context) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
blockCoordToSurfaceCell
(int blockCoord) protected int
protected double
private static int
surfaceCellToBlockCoord
(int surfaceCell) protected void
updateXZ
(int blockX, int blockZ) protected void
updateY
(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockX, int blockY, int blockZ)
-
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 system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, Registry<Biome> p_224621_, WorldGenerationContext context)
-
-
Method Details
-
updateXZ
protected void updateXZ(int blockX, int blockZ) -
updateY
protected void updateY(int stoneDepthAbove, int stoneDepthBelow, int waterHeight, int blockX, int blockY, int blockZ) -
getSurfaceSecondary
protected double getSurfaceSecondary() -
blockCoordToSurfaceCell
private static int blockCoordToSurfaceCell(int blockCoord) -
surfaceCellToBlockCoord
private static int surfaceCellToBlockCoord(int surfaceCell) -
getMinSurfaceLevel
protected int getMinSurfaceLevel()
-