Archived
0

дополнил Location вспомогательными методами

This commit is contained in:
2018-05-06 14:40:45 +03:00
parent 3ed4504475
commit efd0861a77

View File

@@ -11,4 +11,16 @@ import lombok.Data;
@AllArgsConstructor @AllArgsConstructor
public class Location { public class Location {
private double x, y, z; private double x, y, z;
public int getBlockX() {
return (int) x;
}
public int getBlockY() {
return (int) y;
}
public int getBlockZ() {
return (int) z;
}
} }