Class CachedChunkData
java.lang.Object
net.buildtheearth.terraminusminus.util.CustomAttributeContainer
net.buildtheearth.terraminusminus.generator.CachedChunkData
A collection of data cached per-column by earth generators.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class net.buildtheearth.terraminusminus.util.CustomAttributeContainer
custom -
Method Summary
Modifier and TypeMethodDescriptionbooleanaboveSurface(int cubeY) booleanbelowSurface(int cubeY) biome(int x, int z) static CachedChunkData.Builderbuilder()intgroundHeight(int x, int z) booleanintersectsSurface(int cubeY) booleanintersectsSurface(int cubeY, int includeBelow, int includeAbove) surfaceBlock(int x, int z) intsurfaceHeight(int x, int z) intProvides access to the Y coordinate of the highest vertical 16 blocks segment that intersects with the surface.intProvides access to the Y coordinate of the lower vertical 16 blocks segment that intersects with the surface.intwaterHeight(int x, int z) Methods inherited from class net.buildtheearth.terraminusminus.util.CustomAttributeContainer
getCustom, getCustom
-
Field Details
-
BLANK_HEIGHT
public static final int BLANK_HEIGHT- See Also:
-
WATER_DEPTH_OFFSET
public static final int WATER_DEPTH_OFFSET- See Also:
-
WATERDEPTH_DEFAULT
public static final int WATERDEPTH_DEFAULT- See Also:
-
WATERDEPTH_TYPE_MASK
public static final int WATERDEPTH_TYPE_MASK- See Also:
-
WATERDEPTH_TYPE_DEFAULT
public static final int WATERDEPTH_TYPE_DEFAULT- See Also:
-
WATERDEPTH_TYPE_WATER
public static final int WATERDEPTH_TYPE_WATER- See Also:
-
WATERDEPTH_TYPE_OCEAN
public static final int WATERDEPTH_TYPE_OCEAN- See Also:
-
-
Method Details
-
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
-
biome
-
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
-