Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ChunkyCoordinates(Location location)
- {
- double xPos = (location.getX()/16);
- double zPos = (location.getZ()/16);
- this.x = (int)xPos;
- this.z = (int)zPos;
- if (xPos < 0) {
- this.x--;
- }
- if (zPos < 0) {
- this.z--;
- }
- this.world = location.getWorld().getName();
- }
Add Comment
Please, Sign In to add comment