Skip to content

Commit

Permalink
Add dLocation.toLocation() to get Bukkit Locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 23, 2013
1 parent bdcf212 commit dd85371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dLocation.java
Expand Up @@ -294,6 +294,11 @@ else if (getYaw() != 0.0 && getPitch() != 0.0) return "l@" + getX() + "," + getY
public String toString() {
return identify();
}

@Override
public Location toLocation() {
return new Location(getWorld(), getX(), getY(), getZ(), getYaw(), getPitch());
}

@Override
public String getAttribute(Attribute attribute) {
Expand Down

0 comments on commit dd85371

Please sign in to comment.