public interface Interactable extends Clickable, Actionable
Modifier and Type | Method and Description |
---|---|
default boolean |
interact()
Interacts with the entity by clicking on it.
|
default boolean |
interact(boolean rightClick)
Interacts with the entity by clicking on it.
|
boolean |
interact(int opcode)
Interacts with the entity using the specified menu action opcode.
|
boolean |
interact(java.lang.String action)
Interacts with the entity.
|
boolean |
interact(java.lang.String action,
java.lang.String option)
Interacts with the entity.
|
default boolean |
interactMatch(java.lang.String actionRegex)
Interacts with the entity using an action matching the given regular expression.
|
click, click, hover
contains, draw, getCentralPoint, getRandomPoint, getRealCentralPoint, isVisible
getActions, hasAction, hasActionMatch
default boolean interact()
Clickable.click()
.default boolean interact(boolean rightClick)
Clickable.click(boolean)
.rightClick
- true to use the right mouse button to clickboolean interact(java.lang.String action)
action
- the action to selectboolean interact(java.lang.String action, java.lang.String option)
action
- the action to select (e.g. Bank)option
- the option to select (e.g. Bank booth)default boolean interactMatch(java.lang.String actionRegex)
actionRegex
- the action regexboolean interact(int opcode)
opcode
- the menu action op code (e.g. 1005 for "Walk here")