Class SurfaceRules.Context

java.lang.Object
net.minecraft.world.level.levelgen.SurfaceRules.Context
Enclosing class:
SurfaceRules

protected static final class SurfaceRules.Context extends Object
  • 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

      final SurfaceSystem system
    • temperature

      final SurfaceRules.Condition temperature
    • steep

    • hole

    • abovePreliminarySurface

      final SurfaceRules.Condition abovePreliminarySurface
    • randomState

      final RandomState randomState
    • chunk

      final ChunkAccess chunk
    • noiseChunk

      private final NoiseChunk noiseChunk
    • biomeGetter

      private final Function<BlockPos,Holder<Biome>> biomeGetter
    • context

      final WorldGenerationContext 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

  • 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()