Tile

interface Tile : Interactable

Represents a position in the game. Could be relative (LocalTile) or global (WorldTile).

Functions

Link copied to clipboard
abstract fun adjustCameraTo(): Boolean
Moves the camera to a position where the given entity or position is in view.
Link copied to clipboard
abstract fun click(): Boolean
Interacts with the entity, with the first action available.
abstract fun click(action: String): Boolean
Interacts with the entity, given a specific action.
Link copied to clipboard
abstract fun clickOnMinimap(): Boolean
Clicks the tile on the minimap interface.
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
abstract fun getBounds(): Optional<Polygon>
Gets the bounds of this tile on the screen
Link copied to clipboard
abstract fun getPlane(): Int
Gets the plane of this tile
Link copied to clipboard
abstract fun getTile(): WorldTile
Gets the WorldTile of this entity/position
Link copied to clipboard
abstract fun getX(): Int
Gets the x coordinate of this tile
Link copied to clipboard
abstract fun getY(): Int
Gets the y coordinate of this tile
Link copied to clipboard
Unmaintained.
Link copied to clipboard
abstract fun hover(): Boolean
Moves the mouse to a human-randomized point on the entity.
open fun hover(action: String): Boolean
Hovers the specified action on this 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
abstract fun hoverOnMinimap(): Boolean
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
open fun isHovering(): Boolean
Checks if the mouse is currently over this entity
Link copied to clipboard
Unmaintained.
Link copied to clipboard
abstract fun isOnMinimap(): Boolean
Determines if this tile is visible on the minimap interface.
Link copied to clipboard
abstract 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
abstract fun isVisible(): Boolean
Determines if the entity is on the screen and able to be clicked.
Link copied to clipboard
abstract fun leftClickOnScreen(): Boolean
Attempts to left-click this tile on the screen.
Link copied to clipboard
abstract fun translate(x: Int, y: Int): Tile
Translates (shifts) this tile by the specified x and y
abstract fun translate(x: Int, y: Int, z: Int): Tile
Translates (shifts) this tile by the specified x, y, and z