mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 09:51:17 +02:00
Add getMaxBlockY to BlockCache. Might need setting in setAccess, later
on.
This commit is contained in:
parent
eda657b6de
commit
6eb1cb0fd2
@ -21,6 +21,8 @@ public abstract class BlockCache {
|
|||||||
/** Cached shape values. */
|
/** Cached shape values. */
|
||||||
private final CoordMap<double[]> boundsMap = new CoordMap<double[]>();
|
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: switch to nodes with all details on, store a working node ?
|
||||||
|
|
||||||
// TODO: maybe make very fast access arrays for the ray tracing checks.
|
// TODO: maybe make very fast access arrays for the ray tracing checks.
|
||||||
@ -128,5 +130,13 @@ public abstract class BlockCache {
|
|||||||
boundsMap.put(x, y, z, nBounds);
|
boundsMap.put(x, y, z, nBounds);
|
||||||
return nBounds;
|
return nBounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the maximal y coordinate a block can be at (non air).
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int getMaxBlockY(){
|
||||||
|
return maxBlockY;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user