Package emu.grasscutter.utils
Class Position
java.lang.Object
emu.grasscutter.utils.Position
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Location
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddX(float d) addY(float d) addZ(float d) clone()doublebooleanbooleanfloatgetX()floatgetY()floatgetZ()nearby2d(float range) set(float x, float y) set(float x, float y, float z) voidsetX(float x) voidsetY(float y) voidsetZ(float z) double[]To XYZ array for Spatial Indexcom.github.davidmoten.rtreemulti.geometry.PointtoPoint()toProto()toString()double[]To XZ array for Spatial Index (Blocks)translate(float dist, float angle) In radianstranslateWithDegrees(float dist, float angle)
-
Constructor Details
-
Position
public Position() -
Position
public Position(float x, float y) -
Position
public Position(float x, float y, float z) -
Position
-
Position
-
Position
-
Position
-
-
Method Details
-
set
-
set
-
set
-
set
-
add
-
addX
-
addY
-
addZ
-
subtract
-
translate
In radians -
equal2d
-
equal3d
-
computeDistance
-
nearby2d
-
translateWithDegrees
-
clone
-
toString
-
toProto
-
toPoint
public com.github.davidmoten.rtreemulti.geometry.Point toPoint() -
toDoubleArray
public double[] toDoubleArray()To XYZ array for Spatial Index -
toXZDoubleArray
public double[] toXZDoubleArray()To XZ array for Spatial Index (Blocks) -
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y) -
getZ
public float getZ() -
setZ
public void setZ(float z)
-