mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01: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. */
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user