48 lines
850 B
Java
48 lines
850 B
Java
package eu.univento.commons.helpers;
|
|
|
|
/**
|
|
* @author joethei
|
|
* @version 0.1
|
|
*/
|
|
public class Location {
|
|
|
|
private final String world;
|
|
private final double x;
|
|
private final double y;
|
|
private final double z;
|
|
private final float pitch;
|
|
private final float yaw;
|
|
|
|
public Location(String world, double x, double y, double z, float pitch, float yaw) {
|
|
this.world = world;
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
this.pitch = pitch;
|
|
this.yaw = yaw;
|
|
}
|
|
|
|
public String getWorld() {
|
|
return world;
|
|
}
|
|
|
|
public double getX() {
|
|
return x;
|
|
}
|
|
|
|
public double getY() {
|
|
return y;
|
|
}
|
|
|
|
public double getZ() {
|
|
return z;
|
|
}
|
|
|
|
public float getPitch() {
|
|
return pitch;
|
|
}
|
|
|
|
public float getYaw() {
|
|
return yaw;
|
|
}
|
|
} |