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

      private final SurfaceSystem system
    • temperature

      private final SurfaceRules.Condition temperature
    • steep

      private final SurfaceRules.Condition steep
    • hole

      private final SurfaceRules.Condition hole
    • abovePreliminarySurface

      private final SurfaceRules.Condition abovePreliminarySurface
    • randomState

      private final RandomState randomState
    • chunk

      private final ChunkAccess chunk
    • noiseChunk

      private final NoiseChunk noiseChunk
    • biomeGetter

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

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

      private final BlockPos.MutableBlockPos pos
    • biome

      private Supplier<Holder<Biome>> biome
    • blockY

      private int blockY
    • waterHeight

      private int waterHeight
    • stoneDepthBelow

      private int stoneDepthBelow
    • stoneDepthAbove

      private int stoneDepthAbove
  • Constructor Details

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