Package eu.sculkpowered.server.world
Class Position
java.lang.Object
eu.sculkpowered.server.world.Position
Represent a position.
-
Method Summary
Modifier and TypeMethodDescriptionadd
(double x, double y, double z) boolean
float
pitch()
pitch
(float pitch) boolean
pointEquals
(@NotNull Position position) static @NotNull Position
position
(double x, double y, double z) static @NotNull Position
position
(double x, double y, double z, float yaw, float pitch) subtract
(double x, double y, double z) toString()
double
x()
x
(double x) double
y()
y
(double y) float
yaw()
yaw
(float yaw) double
z()
z
(double z) static @NotNull Position
zero()
-
Method Details
-
x
public double x() -
y
public double y() -
z
public double z() -
yaw
public float yaw() -
pitch
public float pitch() -
add
-
subtract
-
x
-
y
-
z
-
yaw
-
pitch
-
equals
-
pointEquals
-
toString
-
position
-
position
@NotNull public static @NotNull Position position(double x, double y, double z, float yaw, float pitch) -
zero
-