mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Added toBlockLocation util
This commit is contained in:
parent
57994742a2
commit
dd3f89221f
@ -381,4 +381,12 @@ public final class LocationUtil {
|
||||
centerLoc.setZ((double)loc.getBlockZ() + 0.5D);
|
||||
return centerLoc;
|
||||
}
|
||||
|
||||
public static Location toBlockLocation(Location loc) {
|
||||
Location blockLoc = loc.clone();
|
||||
blockLoc.setX(loc.getBlockX());
|
||||
blockLoc.setY(loc.getBlockY());
|
||||
blockLoc.setZ(loc.getBlockZ());
|
||||
return blockLoc;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user