Package org.rspeer.game.adapter.type
Interface Actionable
-
- All Known Subinterfaces:
Interactable
- All Known Implementing Classes:
Definition
,EffectObject
,Entity
,InterfaceComponent
,Item
,ItemDefinition
,Npc
,NpcDefinition
,ObjectDefinition
,PathingEntity
,Pickable
,Player
,Projectile
,SceneObject
,TransformableDefinition
public interface Actionable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Actionable.Query<Q extends Actionable.Query<Q>>
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
containsAction(String action)
default boolean
containsAction(Predicate<String> predicate)
List<String>
getActions()
String[]
getRawActions()
-
-
-
Method Detail
-
getRawActions
String[] getRawActions()
-
containsAction
default boolean containsAction(Predicate<String> predicate)
- Parameters:
predicate
- The predicate used to test the actions- Returns:
true
if any of the actions satisfy the predicate
-
containsAction
default boolean containsAction(String action)
- Parameters:
action
- The action to check for- Returns:
true
if this Actionable contains the specified action
-
-