Package org.rspeer.game.adapter.type
Interface Interactable
- All Superinterfaces:
Actionable
- All Known Implementing Classes:
EffectObject
,Entity
,InterfaceComponent
,Item
,Npc
,PathingEntity
,Pickable
,Player
,Projectile
,SceneObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.rspeer.game.adapter.type.Actionable
Actionable.Query<Q extends Actionable.Query<Q>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault MenuAction
default boolean
default boolean
Iterates through @actions and returns true if the interaction was successfuldefault boolean
interact
(String action, InterfaceAddress... dialog) default boolean
default boolean
interact
(Predicate<String> action, InterfaceAddress... dialog) Methods inherited from interface org.rspeer.game.adapter.type.Actionable
containsAction, containsAction, getActions, getRawActions
-
Method Details
-
interact
Iterates through @actions and returns true if the interaction was successful- Parameters:
actions
- The actions to check- Returns:
true
if the interaction was successful
-
interact
- Parameters:
action
- The interact optiondialog
- The dialog options to process after the interaction, in the same tick. Note: This requires the entity to be within 1 manhattan tile- Returns:
true
if successful
-
interact
- Parameters:
action
- The interact optiondialog
- The dialog options to process after the interaction, in the same tick. Note: This requires the entity to be within 1 manhattan tile- Returns:
true
if successful
-
interact
- Parameters:
action
- The action to interact with- Returns:
true
if the interaction was successful
-
interact
-
actionOf
-
actionOf
-