Class CachedChunkData

java.lang.Object
net.buildtheearth.terraminusminus.util.CustomAttributeContainer
net.buildtheearth.terraminusminus.generator.CachedChunkData

public class CachedChunkData extends CustomAttributeContainer
A collection of data cached per-column by earth generators.
  • Field Details

  • Method Details

    • builder

      public static CachedChunkData.Builder builder()
    • intersectsSurface

      public boolean intersectsSurface(int cubeY)
    • intersectsSurface

      public boolean intersectsSurface(int cubeY, int includeBelow, int includeAbove)
    • aboveSurface

      public boolean aboveSurface(int cubeY)
    • belowSurface

      public boolean belowSurface(int cubeY)
    • surfaceHeight

      public int surfaceHeight(int x, int z)
    • groundHeight

      public int groundHeight(int x, int z)
    • waterHeight

      public int waterHeight(int x, int z)
    • surfaceBlock

      public BlockState surfaceBlock(int x, int z)
    • biome

      public Biome biome(int x, int z)
    • surfaceMinCube

      public int surfaceMinCube()
      Provides access to the Y coordinate of the lower vertical 16 blocks segment that intersects with the surface.
      Returns:
      the minimum cube surface Y
    • surfaceMaxCube

      public int surfaceMaxCube()
      Provides access to the Y coordinate of the highest vertical 16 blocks segment that intersects with the surface.
      Returns:
      the maximum cube surface Y