Class SurfaceRules.Context
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
- Enclosing class:
SurfaceRules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classprivate static final classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SurfaceRules.Conditionprivate intprivate intprivate intprivate final ChunkAccessprivate final WorldGenerationContextprivate final SurfaceRules.Conditionprivate static final intprivate longprivate longprivate longprivate longprivate longprivate intprivate final NoiseChunkprivate final BlockPos.MutableBlockPosprivate final int[]private final RandomStateprivate final SurfaceRules.Conditionprivate intprivate intprivate static final intprivate static final intprivate static final intprivate intprivate doubleprivate final SurfaceSystemprivate final SurfaceRules.Conditionprivate int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContext(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, Registry<Biome> biomes, WorldGenerationContext context) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intblockCoordToSurfaceCell(int blockCoord) protected intintprotected doubleprivate static intsurfaceCellToBlockCoord(int cellCoord) protected voidupdateXZ(int blockX, int blockZ) protected voidupdateY(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
private long lastUpdateXZ -
blockX
private int blockX -
blockZ
private int blockZ -
surfaceDepth
private int surfaceDepth -
lastSurfaceDepth2Update
private long lastSurfaceDepth2Update -
surfaceSecondary
private double surfaceSecondary -
lastMinSurfaceLevelUpdate
private long lastMinSurfaceLevelUpdate -
minSurfaceLevel
private int minSurfaceLevel -
lastUpdateY
private long lastUpdateY -
pos
-
biome
-
blockY
private int blockY -
waterHeight
private int waterHeight -
stoneDepthBelow
private int stoneDepthBelow -
stoneDepthAbove
private int stoneDepthAbove
-
-
Constructor Details
-
Context
protected Context(SurfaceSystem system, RandomState randomState, ChunkAccess chunk, NoiseChunk noiseChunk, Function<BlockPos, Holder<Biome>> biomeGetter, Registry<Biome> biomes, 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() -
getSeaLevel
public int getSeaLevel() -
blockCoordToSurfaceCell
private static int blockCoordToSurfaceCell(int blockCoord) -
surfaceCellToBlockCoord
private static int surfaceCellToBlockCoord(int cellCoord) -
getMinSurfaceLevel
protected int getMinSurfaceLevel()
-