Interactable

public interface Interactable implements Positionable, Clickable

Represents an "interactable" entity. This is an entity that is both positionable (has a position), and clickable.

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.
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
getTile
Link copied to clipboard
abstract WorldTile getTile()
Gets the WorldTile of this entity/position
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
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
abstract boolean isHovering()
Checks if the mouse is currently over this entity
isVisible
Link copied to clipboard
abstract boolean isVisible()
Determines if the entity is on the screen and able to be clicked.

Inheritors

GroundItem
Link copied to clipboard
GameObject
Link copied to clipboard
Tile
Link copied to clipboard
Character
Link copied to clipboard