Package dev.boze.api.event
Class EventInteract
java.lang.Object
dev.boze.api.event.EventInteract
EventInteract
Event fired when the client is fetching interactions.
This event allows addons to add custom interactions that may require rotation.
Interactions added to this event will be executed by the client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInteraction(Interaction interaction) Adds an interaction to be executedstatic EventInteractget(InteractionMode mode) Gets the event instanceGets all added interactionsgetMode()Gets the interaction modebooleanReturns whether any of the added interactions require rotation
-
Constructor Details
-
EventInteract
public EventInteract()
-
-
Method Details
-
get
Gets the event instance- Parameters:
mode- The interaction mode- Returns:
- The event instance
-
getMode
Gets the interaction mode- Returns:
- The interaction mode
-
addInteraction
Adds an interaction to be executed- Parameters:
interaction- The interaction to add
-
getInteractions
Gets all added interactions- Returns:
- The list of interactions
-
hasRotatingInteractions
public boolean hasRotatingInteractions()Returns whether any of the added interactions require rotation- Returns:
- true if any interaction requires rotation
-