Archived
0

грузим чанки при входе

This commit is contained in:
2021-05-09 18:47:51 +03:00
parent 20791ed881
commit 04316d9cbd
5 changed files with 70 additions and 13 deletions

View File

@@ -9,4 +9,16 @@ public class Location {
private double x;
private double y;
private double z;
public int getIntX() {
return (int) x;
}
public int getIntZ() {
return (int) z;
}
public Location toChunkXZ() {
return new Location(this.getIntX() >> 4, 0d, this.getIntZ() >> 4);
}
}