Class SurfaceRules.Context
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
- Enclosing class:
- SurfaceRules
-
Nested Class Summary
Modifier and TypeClassDescription(package private) final class
(package private) static final class
(package private) static class
(package private) static class
-
Field Summary
Modifier 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 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
ModifierConstructorDescriptionprotected
Context
(SurfaceSystem p_189562_, ChunkAccess p_189563_, NoiseChunk p_189564_, Function<BlockPos, Holder<Biome>> p_189565_, Registry<Biome> p_189566_, WorldGenerationContext p_189567_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
blockCoordToSurfaceCell
(int p_198281_) protected int
protected double
private static int
surfaceCellToBlockCoord
(int p_198283_) protected void
updateXZ
(int p_189570_, int p_189571_) protected void
updateY
(int p_189577_, int p_189578_, int p_189579_, int p_189580_, int p_189581_, int p_189582_)
-
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
-
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 p_189562_, ChunkAccess p_189563_, NoiseChunk p_189564_, Function<BlockPos, Holder<Biome>> p_189565_, Registry<Biome> p_189566_, WorldGenerationContext p_189567_)
-
-
Method Details
-
updateXZ
protected void updateXZ(int p_189570_, int p_189571_) -
updateY
protected void updateY(int p_189577_, int p_189578_, int p_189579_, int p_189580_, int p_189581_, int p_189582_) -
getSurfaceSecondary
protected double getSurfaceSecondary() -
blockCoordToSurfaceCell
private static int blockCoordToSurfaceCell(int p_198281_) -
surfaceCellToBlockCoord
private static int surfaceCellToBlockCoord(int p_198283_) -
getMinSurfaceLevel
protected int getMinSurfaceLevel()
-