LocalTile

open class LocalTile : AbstractTile

Represents a tile in the current scene

See also

Constructors

Link copied to clipboard
constructor(x: Int, y: Int)
constructor(x: Int, y: Int, plane: Int)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
protected val rsTile: RSTile

Functions

Link copied to clipboard
Moves the camera to a position where the given entity or position is in view.
Link copied to clipboard
open fun click(): Boolean
Interacts with the entity, with the first action available.
open fun click(action: String): Boolean
Interacts with the entity, given a specific action.
Link copied to clipboard
Clicks the tile on the minimap interface.
Link copied to clipboard
Link copied to clipboard
open fun distance(): Int
Determines the distance between this entity/tile and the local player
Link copied to clipboard
open fun distanceTo(position: Positionable): Int
Determines the distance between this entity/tile and the given entity/tile
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
Gets the bounds of this tile on the screen
Link copied to clipboard
Link copied to clipboard
open fun getHeight(): Int
Link copied to clipboard
open fun getLegacyTile(): RSTile
Link copied to clipboard
Gets the neighboring tile in the specified direction
Link copied to clipboard
open fun getPlane(): Int
Gets the plane of this tile
Link copied to clipboard
Link copied to clipboard
open fun getTile(): WorldTile
Gets the WorldTile of this entity/position
Link copied to clipboard
open fun getX(): Int
Gets the x coordinate of this tile
Link copied to clipboard
open fun getY(): Int
Gets the y coordinate of this tile
Link copied to clipboard
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Unmaintained.
Link copied to clipboard
Link copied to clipboard
open fun hover(action: String): Boolean
Hovers the specified action on this entity.
open fun hover(): Boolean
Moves the mouse to a human-randomized point on the entity.
Link copied to clipboard
open fun hoverMenu(action: String): Boolean
Hovers the specified action on this entity, always right-clicking and hovering over the menu
Link copied to clipboard
Attempts to hover the tile on the minimap
Link copied to clipboard
open fun interact(action: String): Boolean
open fun interact(action: String, interruptCondition: BooleanSupplier): Boolean
Attempts to interact with the entity using the given action.
Link copied to clipboard
Link copied to clipboard
open fun isHovering(): Boolean
Checks if the mouse is currently over this entity
Link copied to clipboard
Unmaintained.
Link copied to clipboard
open fun isLoaded(): Boolean
Checks if this local tile is valid and in the loaded region.
Link copied to clipboard
open fun isOnMinimap(): Boolean
Determines if this tile is visible on the minimap interface.
Link copied to clipboard
open fun isRendered(): Boolean
Checks if this tile is currently being rendered (a tile is not rendered if it's covered by the 'black fog')
Link copied to clipboard
open fun isVisible(): Boolean
Determines if the entity is on the screen and able to be clicked.
Link copied to clipboard
open fun isWalkable(): Boolean
Link copied to clipboard
Attempts to left-click this tile on the screen.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Link copied to clipboard
open fun translate(x: Int, y: Int): LocalTile
Translates (shifts) this tile by the specified x and y
open fun translate(x: Int, y: Int, z: Int): LocalTile
Translates (shifts) this tile by the specified x, y, and z