Added Vector class.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-02 16:23:56 +08:00
parent aeb55da0e1
commit 7da3223201
2 changed files with 356 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ public class Location implements Cloneable {
public String toString() {
return "Location{" + "world=" + world + "x=" + x + "y=" + y + "z=" + z + "pitch=" + pitch + "yaw=" + yaw + '}';
}
public Vector toVector() {
return new Vector(x, y, z);
}
@Override
protected Location clone() {