java.lang.Object
net.botwithus.rs3.game.Coordinate
- All Implemented Interfaces:
Locatable
An immutable representation of a position in the RuneScape world
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Coordinatecopy(Coordinate pos) Copies the coords of one position into a new positionderive(int xOffset, int yOffset, int planeOffset) booleangetArea()Gets the area that the entity occupies on the world graphReturns the position of the entity on the world graph.intintintintgetX()intintgetY()intintgetZ()inthashCode()booleanbooleanbooleanbooleanbooleantoPoint()toString()Methods inherited from interface net.botwithus.rs3.game.Locatable
distanceTo, isReachable
-
Field Details
-
ZERO
-
-
Constructor Details
-
Coordinate
public Coordinate(int x, int y, int z) -
Coordinate
-
-
Method Details
-
copy
Copies the coords of one position into a new position- Parameters:
pos- The position to copy- Returns:
- The copied position
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getRegionX
public int getRegionX() -
getRegionY
public int getRegionY() -
getRegionId
public int getRegionId() -
getXInRegion
public int getXInRegion() -
getYInRegion
public int getYInRegion() -
equals
-
hashCode
public int hashCode() -
toString
-
getArea
Description copied from interface:LocatableGets the area that the entity occupies on the world graph -
getCoordinate
Description copied from interface:LocatableReturns the position of the entity on the world graph.- Specified by:
getCoordinatein interfaceLocatable- Returns:
- The position of the entity, or null if it cannot be determined or is no longer on the world graph.
-
toPoint
-
isWestOf
-
isEastOf
-
isNorthOf
-
isSouthOf
-
derive
-
isWalkable
public boolean isWalkable()
-