public interface Actionable
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getActions()
Gets the available actions.
|
boolean |
hasAction(java.lang.String... actions)
Determines if this entity has one of the given actions.
|
default boolean |
hasActionMatch(java.lang.String actionRegex)
Determines if this entity has an action matching the given regular expression.
|
java.util.List<java.lang.String> getActions()
boolean hasAction(java.lang.String... actions)
actions
- one or multiple actionsdefault boolean hasActionMatch(java.lang.String actionRegex)
actionRegex
- the action regex