Tile

public interface Tile implements Interactable

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

Functions

adjustCameraTo
Link copied to clipboard
abstract boolean adjustCameraTo()
Moves the camera to a position where the given entity or position is in view.
click
Link copied to clipboard
abstract boolean click()
Interacts with the entity, with the first action available.
abstract boolean click(String action)
Interacts with the entity, given a specific action.
clickOnMinimap
Link copied to clipboard
abstract boolean clickOnMinimap()
Clicks the tile on the minimap interface.
distance
Link copied to clipboard
int distance()
Determines the distance between this entity/tile and the local player
distanceTo
Link copied to clipboard
int distanceTo(Positionable position)
Determines the distance between this entity/tile and the given entity/tile
getBounds
Link copied to clipboard
abstract Optional<PolygongetBounds()
Gets the bounds of this tile on the screen
getPlane
Link copied to clipboard
abstract int getPlane()
Gets the plane of this tile
getTile
Link copied to clipboard
abstract WorldTile getTile()
Gets the WorldTile of this entity/position
getX
Link copied to clipboard
abstract int getX()
Gets the x coordinate of this tile
getY
Link copied to clipboard
abstract int getY()
Gets the y coordinate of this tile
hasLineOfSightTo
Link copied to clipboard
boolean hasLineOfSightTo(Positionable other)
Unmaintained.
hover
Link copied to clipboard
abstract boolean hover()
Moves the mouse to a human-randomized point on the entity.
boolean hover(String action)
Hovers the specified action on this entity.
hoverMenu
Link copied to clipboard
boolean hoverMenu(String action)
Hovers the specified action on this entity, always right-clicking and hovering over the menu
hoverOnMinimap
Link copied to clipboard
abstract boolean hoverOnMinimap()
Attempts to hover the tile on the minimap
interact
Link copied to clipboard
boolean interact(String action)
Attempts to interact with the entity using the given action.
boolean interact(String action, BooleanSupplier interruptCondition)
Attempts to interact with the entity using the given action.
isHovering
Link copied to clipboard
boolean isHovering()
Checks if the mouse is currently over this entity
isInLineOfSight
Link copied to clipboard
boolean isInLineOfSight()
Unmaintained.
isOnMinimap
Link copied to clipboard
abstract boolean isOnMinimap()
Determines if this tile is visible on the minimap interface.
isRendered
Link copied to clipboard
abstract boolean isRendered()
Checks if this tile is currently being rendered (a tile is not rendered if it's covered by the 'black fog')
isVisible
Link copied to clipboard
abstract boolean isVisible()
Determines if the entity is on the screen and able to be clicked.
leftClickOnScreen
Link copied to clipboard
abstract boolean leftClickOnScreen()
Attempts to left-click this tile on the screen.
translate
Link copied to clipboard
abstract Tile translate(int x, int y)
Translates (shifts) this tile by the specified x and y
abstract Tile translate(int x, int y, int z)
Translates (shifts) this tile by the specified x, y, and z