Push
This commit is contained in:
parent
79098e3e24
commit
e0914b029b
54 changed files with 688 additions and 221 deletions
|
|
@ -0,0 +1,19 @@
|
|||
package org.gsdistance.grimmsServer.Constructable;
|
||||
|
||||
public class Location {
|
||||
public double x;
|
||||
public double y;
|
||||
public double z;
|
||||
public String world;
|
||||
|
||||
public Location(org.bukkit.Location location) {
|
||||
this.x = location.getX();
|
||||
this.y = location.getY();
|
||||
this.z = location.getZ();
|
||||
this.world = location.getWorld().getName();
|
||||
}
|
||||
|
||||
public org.bukkit.Location toBukkitLocation() {
|
||||
return new org.bukkit.Location(org.bukkit.Bukkit.getWorld(world), x, y, z);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue