Package dev.boze.api.event
Class EventPlayerUpdate
java.lang.Object
dev.boze.api.event.EventPlayerUpdate
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInteraction
(Interaction interaction) Adds an interaction to the event interaction queuestatic EventPlayerUpdate
get
(boolean bozeInteracting) Gets the event instance - this is called once a tick by Boze, and should not be called by addonsboolean
Addons that wish to have a lower priority than Boze should check this method
-
Field Details
-
interactions
-
-
Constructor Details
-
EventPlayerUpdate
public EventPlayerUpdate()
-
-
Method Details
-
isBozeInteracting
public boolean isBozeInteracting()Addons that wish to have a lower priority than Boze should check this methodIf this method returns true, the addon should not interact with the server
- Returns:
- Weather Boze itself is interacting with the server
-
get
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
Adds an interaction to the event interaction queue- Parameters:
interaction
- The interaction to add
-