Fleshed out PlayerPosition.

This commit is contained in:
Jeremy Wood 2012-11-09 13:13:13 -05:00
parent 1899b45611
commit b1c915f903

View File

@ -1,16 +1,43 @@
package com.onarandombox.multiverse.core.minecraft;
public interface PlayerPosition {
public class PlayerPosition {
String getWorld();
private final double x, y, z;
private final float pitch, yaw;
private final String world;
float getPitch();
float getYaw();
double getX();
double getY();
double getZ();
PlayerPosition(final String world, final double x,
final double y, final double z,
final float pitch, final 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 float getPitch() {
return pitch;
}
public float getYaw() {
return this.yaw;
}
public double getX() {
return this.x;
}
public double getY() {
return this.y;
}
public double getZ() {
return this.z;
}
}