TCheckpoint
This commit is contained in:
parent
665447b178
commit
dbc979b4c9
39 changed files with 543 additions and 92 deletions
|
|
@ -15,6 +15,13 @@ public class Location {
|
|||
this.world = Objects.requireNonNull(location.getWorld()).getName();
|
||||
}
|
||||
|
||||
public Location(String world, double x, double y, double z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.world = world;
|
||||
}
|
||||
|
||||
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