Class WorldTile
- java.lang.Object
-
- net.eternalclient.api.wrappers.map.WorldTile
-
- All Implemented Interfaces:
Positionable
,Tile
public final class WorldTile extends java.lang.Object implements Tile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorldTile
derive(int dx, int dy)
WorldTile
derive(int dx, int dy, int dp)
WorldTile
derive(Direction direction)
WorldTile
derive(Direction direction, int steps)
WorldTile
derivePlane(int dp)
WorldTile
deriveRotation(int rotation)
WorldTile
deriveX(int dx)
WorldTile
deriveY(int dy)
boolean
equals(java.lang.Object o)
static WorldTile
from(LocalTile tile)
static WorldTile
from(LocalTile tile, int plane)
static WorldTile
from(RegionTile tile)
static WorldTile
from(RegionTile tile, int plane)
static WorldTile
from(SceneTile tile)
static WorldTile
from(SceneTile tile, int plane)
static WorldTile
fromCoord(int packed)
Creates a WorldTile from a packed Jagex Coordinatestatic WorldTile
fromLocal(int x, int y)
static WorldTile
fromLocal(int x, int y, int plane)
static WorldTile
fromLocal(int x, int y, int plane, RSWorldView worldView)
static WorldTile
fromLocal(int x, int y, RSWorldView worldView)
static WorldTile
fromRegion(int x, int y, int plane, int regionId)
static WorldTile
fromScene(int x, int y)
static WorldTile
fromScene(int x, int y, int plane)
static WorldTile
fromScene(int x, int y, int plane, RSWorldView worldView)
static WorldTile
fromScene(int x, int y, RSWorldView worldView)
int
getPlane()
int
getWorldX()
int
getWorldY()
int
getX()
int
getY()
int
hashCode()
WorldTile
toClosestLocalInstance()
Get the closest occurrence of a tile on the scene, accounting for instances.WorldTile
toClosestLocalInstance(RSWorldView wv)
Get the closest occurrence of a tile on the scene, accounting for instances.java.util.Collection<WorldTile>
toLocalInstance()
Get occurrences of a tile on the scene, accounting for instances.java.util.Collection<WorldTile>
toLocalInstance(RSWorldView wv)
Get occurrences of a tile on the scene, accounting for instances.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.eternalclient.api.interfaces.Positionable
canReach, canReach, canReachSurrounding, canReachSurrounding, distance, distance, distanceTo, distanceTo2D, distanceTo2DHypotenuse, distanceToHypotenuse, distanceToPath, draw, drawMinimapDot, drawText, getCanvasTextLocation, getCanvasTilePoly, GetChunkRotation, getHeight, getLocalTile, getLocalX, getLocalY, getMinimapPoint, getMovementFlags, getRectArea, getRegionId, getRegionTile, getRegionX, getRegionY, getSceneTile, getSceneX, getSceneY, getSurroundingArea, getWalkableTile, getWidth, getWorldTile, hasLineOfSightTo, hasLineOfSightTo, inLineOfSight, isInArea, isInArea, isInArea2D, isInArea2D, isInMeleeDistance, isInScene, isUnderRoof, locatedAt, pathTo, walkingDistance
-
Methods inherited from interface net.eternalclient.api.wrappers.map.Tile
getWorldView
-
-
-
-
Method Detail
-
fromLocal
public static WorldTile fromLocal(int x, int y)
-
fromLocal
public static WorldTile fromLocal(int x, int y, int plane)
-
fromLocal
public static WorldTile fromLocal(int x, int y, RSWorldView worldView)
-
fromLocal
public static WorldTile fromLocal(int x, int y, int plane, RSWorldView worldView)
-
fromScene
public static WorldTile fromScene(int x, int y)
-
fromScene
public static WorldTile fromScene(int x, int y, int plane)
-
fromScene
public static WorldTile fromScene(int x, int y, RSWorldView worldView)
-
fromScene
public static WorldTile fromScene(int x, int y, int plane, RSWorldView worldView)
-
from
public static WorldTile from(RegionTile tile)
-
from
public static WorldTile from(RegionTile tile, int plane)
-
fromRegion
public static WorldTile fromRegion(int x, int y, int plane, int regionId)
-
fromCoord
public static WorldTile fromCoord(int packed)
Creates a WorldTile from a packed Jagex Coordinate
-
getWorldX
public int getWorldX()
- Specified by:
getWorldX
in interfacePositionable
-
getWorldY
public int getWorldY()
- Specified by:
getWorldY
in interfacePositionable
-
deriveX
public WorldTile deriveX(int dx)
-
deriveY
public WorldTile deriveY(int dy)
-
derivePlane
public WorldTile derivePlane(int dp)
-
derive
public WorldTile derive(int dx, int dy)
- Specified by:
derive
in interfacePositionable
-
derive
public WorldTile derive(int dx, int dy, int dp)
-
derive
public WorldTile derive(Direction direction)
- Specified by:
derive
in interfacePositionable
-
derive
public WorldTile derive(Direction direction, int steps)
- Specified by:
derive
in interfacePositionable
-
deriveRotation
public WorldTile deriveRotation(int rotation)
-
toClosestLocalInstance
public WorldTile toClosestLocalInstance()
Get the closest occurrence of a tile on the scene, accounting for instances.- Returns:
- The closest occurrence of the tile on the scene or null if the tile is not on the scene
-
toClosestLocalInstance
public WorldTile toClosestLocalInstance(RSWorldView wv)
Get the closest occurrence of a tile on the scene, accounting for instances.- Parameters:
wv
- The world view to use- Returns:
- The closest occurrence of the tile on the scene or null if the tile is not on the scene
-
toLocalInstance
public java.util.Collection<WorldTile> toLocalInstance()
Get occurrences of a tile on the scene, accounting for instances. There may be more than one if the same template chunk occurs more than once on the scene.
-
toLocalInstance
public java.util.Collection<WorldTile> toLocalInstance(RSWorldView wv)
Get occurrences of a tile on the scene, accounting for instances. There may be more than one if the same template chunk occurs more than once on the scene.
-
getX
public int getX()
-
getY
public int getY()
-
getPlane
public int getPlane()
- Specified by:
getPlane
in interfacePositionable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-