Class EventPlayerUpdate

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

public class EventPlayerUpdate extends Object
EventPlayerUpdate

Event called when the player updates, once a tick

This event should be used for any interactions with the server

Interactions outside this event and EventGrim may not work properly, and may cause issues

See Also:
  • Field Details

  • Constructor Details

    • EventPlayerUpdate

      public EventPlayerUpdate()
  • Method Details

    • isBozeInteracting

      public boolean isBozeInteracting()
      Addons that wish to have a lower priority than Boze should check this method

      If this method returns true, the addon should not interact with the server

      Returns:
      Weather Boze itself is interacting with the server
    • get

      public static EventPlayerUpdate get(boolean bozeInteracting)
      Gets the event instance - this is called once a tick by Boze, and should not be called by addons
      Parameters:
      bozeInteracting - Whether Boze is interacting with the server
      Returns:
      The event instance
    • addInteraction

      public void addInteraction(Interaction interaction)
      Adds an interaction to the event interaction queue
      Parameters:
      interaction - The interaction to add