Class EventInteract

java.lang.Object
dev.boze.api.event.EventInteract

public class EventInteract extends Object
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 Details

    • EventInteract

      public EventInteract()
  • Method Details

    • get

      public static EventInteract get(InteractionMode mode)
      Gets the event instance
      Parameters:
      mode - The interaction mode
      Returns:
      The event instance
    • getMode

      public InteractionMode getMode()
      Gets the interaction mode
      Returns:
      The interaction mode
    • addInteraction

      public void addInteraction(Interaction interaction)
      Adds an interaction to be executed
      Parameters:
      interaction - The interaction to add
    • getInteractions

      public List<Interaction> 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