Class AsyncTeamUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.fren_gor.ultimateAdvancementAPI.events.team.AsyncTeamUpdateEvent
Called when a team member joins or leaves a team.
May be called asynchronously.
- Since:
- 2.2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The action that occurred.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncTeamUpdateEvent
(@NotNull TeamProgression team, @NotNull UUID playerUUID, @NotNull AsyncTeamUpdateEvent.Action action) Creates a newAsyncTeamUpdateEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets theAsyncTeamUpdateEvent.Action
of the update.static HandlerList
Gets theUUID
of the player.Gets theTeamProgression
of the player's team.int
hashCode()
toString()
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AsyncTeamUpdateEvent
public AsyncTeamUpdateEvent(@NotNull @NotNull TeamProgression team, @NotNull @NotNull UUID playerUUID, @NotNull @NotNull AsyncTeamUpdateEvent.Action action) Creates a newAsyncTeamUpdateEvent
.- Parameters:
team
- TheTeamProgression
of the player's team. It must be valid (seeTeamProgression.isValid()
).playerUUID
- TheUUID
of the player.action
- TheAsyncTeamUpdateEvent.Action
of the update.
-
-
Method Details
-
getTeamProgression
Gets theTeamProgression
of the player's team.- Returns:
- The
TeamProgression
of the player's team.
-
getPlayerUUID
Gets theUUID
of the player.- Returns:
- The
UUID
of the player.
-
getAction
Gets theAsyncTeamUpdateEvent.Action
of the update.- Returns:
- The
AsyncTeamUpdateEvent.Action
of the update.
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
toString
-
equals
-
hashCode
public int hashCode()
-