Class SquaremapLocation
java.lang.Object
io.github.emcw.squaremap.entities.SquaremapLocation
- All Implemented Interfaces:
IGsonSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionSquaremapLocation(Integer x, Integer z) A point in 2D space.SquaremapLocation(Integer x, Integer y, Integer z) A point in 3D space. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this location points to the center of the map.
Shorthand forx == 0 && z == 0.booleanCheck if this location is properly initialized.
Shorthand forx != null && z != null.static SquaremapLocationof(int[] xArr, int[] zArr) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.emcw.interfaces.IGsonSerializable
asString
-
Constructor Details
-
SquaremapLocation
-
SquaremapLocation
-
-
Method Details
-
isValidPoint
public boolean isValidPoint()Check if this location is properly initialized.
Shorthand forx != null && z != null. -
isMapCenter
public boolean isMapCenter()Whether this location points to the center of the map.
Shorthand forx == 0 && z == 0. -
of
-