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 WorldTilederive(int dx, int dy)WorldTilederive(int dx, int dy, int dp)WorldTilederive(Direction direction)WorldTilederive(Direction direction, int steps)WorldTilederivePlane(int dp)WorldTilederiveRotation(int rotation)WorldTilederiveX(int dx)WorldTilederiveY(int dy)booleanequals(java.lang.Object o)static WorldTilefrom(LocalTile tile)static WorldTilefrom(LocalTile tile, int plane)static WorldTilefrom(RegionTile tile)static WorldTilefrom(RegionTile tile, int plane)static WorldTilefrom(SceneTile tile)static WorldTilefrom(SceneTile tile, int plane)static WorldTilefromCoord(int packed)Creates a WorldTile from a packed Jagex Coordinatestatic WorldTilefromLocal(int x, int y)static WorldTilefromLocal(int x, int y, int plane)static WorldTilefromLocal(int x, int y, int plane, RSWorldView worldView)static WorldTilefromLocal(int x, int y, RSWorldView worldView)static WorldTilefromRegion(int x, int y, int plane, int regionId)static WorldTilefromScene(int x, int y)static WorldTilefromScene(int x, int y, int plane)static WorldTilefromScene(int x, int y, int plane, RSWorldView worldView)static WorldTilefromScene(int x, int y, RSWorldView worldView)intgetPlane()intgetWorldX()intgetWorldY()intgetX()intgetY()inthashCode()WorldTiletoClosestLocalInstance()Get the closest occurrence of a tile on the scene, accounting for instances.WorldTiletoClosestLocalInstance(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.StringtoString()-
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:
getWorldXin interfacePositionable
-
getWorldY
public int getWorldY()
- Specified by:
getWorldYin 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:
derivein interfacePositionable
-
derive
public WorldTile derive(int dx, int dy, int dp)
-
derive
public WorldTile derive(Direction direction)
- Specified by:
derivein interfacePositionable
-
derive
public WorldTile derive(Direction direction, int steps)
- Specified by:
derivein 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:
getPlanein interfacePositionable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-