Add getMaxBlockY to BlockCache. Might need setting in setAccess, later

on.
This commit is contained in:
asofold 2013-01-29 16:02:08 +01:00
parent eda657b6de
commit 6eb1cb0fd2

View File

@ -21,6 +21,8 @@ public abstract class BlockCache {
/** Cached shape values. */
private final CoordMap<double[]> boundsMap = new CoordMap<double[]>();
private int maxBlockY = 255;
// TODO: switch to nodes with all details on, store a working node ?
// TODO: maybe make very fast access arrays for the ray tracing checks.
@ -129,4 +131,12 @@ public abstract class BlockCache {
return nBounds;
}
/**
* Get the maximal y coordinate a block can be at (non air).
* @return
*/
public int getMaxBlockY(){
return maxBlockY;
}
}