Interactable
Something with menu actions.
InterfaceRLPlugins API
public interface InteractableType only. Implemented by ItemEx and every Entity. Click it through InventoryAPI, NpcAPI or TileObjectAPI.
Members
Methods
- String[]getActions()
Gets the available actions for this entity.
- voidinteract(String...)
Interacts with the entity by first matching action.
- voidinteract(int)
Interacts with the entity using the specified action index.
- booleanisInteractable()
Whether interactable.
getActions()
public String[] getActions()Gets the available actions for this entity.
Returns
An array of action strings.
interact(String...)
public void interact(String... actions)Interacts with the entity by first matching action.
Parameters
actions- The action(s) to perform on the entity.
interact(int)
public void interact(int action)Interacts with the entity using the specified action index.
Parameters
action- The action index to perform on the entity.
isInteractable()
public boolean isInteractable()Whether interactable.
Also allowed
Every class has these, as in plain Java.
equals, toString