java.lang.Object
net.botwithus.rs3.game.Coordinate
- All Implemented Interfaces:
Locatable
An immutable representation of a position in the RuneScape world
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Coordinate
copy
(Coordinate pos) Copies the coords of one position into a new positionderive
(int xOffset, int yOffset, int planeOffset) boolean
getArea()
Gets the area that the entity occupies on the world graphReturns the position of the entity on the world graph.int
int
int
int
getX()
int
int
getY()
int
int
getZ()
int
hashCode()
boolean
boolean
boolean
boolean
boolean
toPoint()
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:Locatable
Gets the area that the entity occupies on the world graph -
getCoordinate
Description copied from interface:Locatable
Returns the position of the entity on the world graph.- Specified by:
getCoordinate
in 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()
-