Interface Interactable
- All Superinterfaces:
Actionable,Clickable,Renderable
- All Known Subinterfaces:
Actor,GameEntity,GroundItem,ItemWidget,NPC,Player,SceneObject,WidgetChild
- All Known Implementing Classes:
Tile
An entity that can be interacted with.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleaninteract()Interacts with the entity by clicking on it.default booleaninteract(boolean rightClick) Interacts with the entity by clicking on it.booleanInteracts with the entity.booleanInteracts with the entity.default booleaninteractMatch(String actionRegex) Interacts with the entity using an action matching the given regular expression.Methods inherited from interface com.epicbot.api.shared.entity.details.Actionable
getActions, hasAction, hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Clickable
click, click, hoverMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
contains, draw, draw, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
-
Method Details
-
interact
default boolean interact()Interacts with the entity by clicking on it. Convenience method forClickable.click().- Returns:
- true if the interaction succeeded, false otherwise
-
interact
default boolean interact(boolean rightClick) Interacts with the entity by clicking on it. Convenience method forClickable.click(boolean).- Parameters:
rightClick- true to use the right mouse button to click- Returns:
- true if the interaction succeeded, false otherwise
-
interact
Interacts with the entity.- Parameters:
action- the action to select- Returns:
- true if the interaction succeeded, false otherwise
-
interact
Interacts with the entity.- Parameters:
action- the action to select (e.g. Bank)option- the option to select (e.g. Bank booth)- Returns:
- true if the interaction succeeded, false otherwise
-
interactMatch
Interacts with the entity using an action matching the given regular expression.- Parameters:
actionRegex- the action regex- Returns:
- true if the interaction succeeded, false otherwise
-