дополнил Location вспомогательными методами
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user