Class SurfaceRules.Context
java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
- Enclosing class:
- SurfaceRules
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) final class(package private) static final class(package private) static class(package private) static class
- 
Field SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionprotectedContext(SurfaceSystem p_224616_, RandomState p_224617_, ChunkAccess p_224618_, NoiseChunk p_224619_, Function<BlockPos, Holder<Biome>> p_224620_, Registry<Biome> p_224621_, WorldGenerationContext p_224622_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intblockCoordToSurfaceCell(int p_198281_) protected intprotected doubleprivate static intsurfaceCellToBlockCoord(int p_198283_) protected voidupdateXZ(int p_189570_, int p_189571_) protected voidupdateY(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_SURFACEprivate static final int HOW_FAR_BELOW_PRELIMINARY_SURFACE_LEVEL_TO_BUILD_SURFACE- See Also:
 
- 
SURFACE_CELL_BITSprivate static final int SURFACE_CELL_BITS- See Also:
 
- 
SURFACE_CELL_SIZEprivate static final int SURFACE_CELL_SIZE- See Also:
 
- 
SURFACE_CELL_MASKprivate static final int SURFACE_CELL_MASK- See Also:
 
- 
system
- 
temperature
- 
steep
- 
hole
- 
abovePreliminarySurface
- 
randomState
- 
chunk
- 
noiseChunk
- 
biomeGetter
- 
context
- 
lastPreliminarySurfaceCellOriginprivate long lastPreliminarySurfaceCellOrigin
- 
preliminarySurfaceCacheprivate final int[] preliminarySurfaceCache
- 
lastUpdateXZlong lastUpdateXZ
- 
blockXint blockX
- 
blockZint blockZ
- 
surfaceDepthint surfaceDepth
- 
lastSurfaceDepth2Updateprivate long lastSurfaceDepth2Update
- 
surfaceSecondaryprivate double surfaceSecondary
- 
lastMinSurfaceLevelUpdateprivate long lastMinSurfaceLevelUpdate
- 
minSurfaceLevelprivate int minSurfaceLevel
- 
lastUpdateYlong lastUpdateY
- 
pos
- 
biome
- 
blockYint blockY
- 
waterHeightint waterHeight
- 
stoneDepthBelowint stoneDepthBelow
- 
stoneDepthAboveint stoneDepthAbove
 
- 
- 
Constructor Details- 
Contextprotected Context(SurfaceSystem p_224616_, RandomState p_224617_, ChunkAccess p_224618_, NoiseChunk p_224619_, Function<BlockPos, Holder<Biome>> p_224620_, Registry<Biome> p_224621_, WorldGenerationContext p_224622_) 
 
- 
- 
Method Details- 
updateXZprotected void updateXZ(int p_189570_, int p_189571_) 
- 
updateYprotected void updateY(int p_189577_, int p_189578_, int p_189579_, int p_189580_, int p_189581_, int p_189582_) 
- 
getSurfaceSecondaryprotected double getSurfaceSecondary()
- 
blockCoordToSurfaceCellprivate static int blockCoordToSurfaceCell(int p_198281_) 
- 
surfaceCellToBlockCoordprivate static int surfaceCellToBlockCoord(int p_198283_) 
- 
getMinSurfaceLevelprotected int getMinSurfaceLevel()
 
-