Class ProgressionUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.fren_gor.ultimateAdvancementAPI.events.advancement.ProgressionUpdateEvent
Called when a team's progression of an advancement changes.
This event differs from AdvancementProgressionUpdateEvent
because it is called by DatabaseManager.updateProgressionWithCompletable(AdvancementKey, TeamProgression, int)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionProgressionUpdateEvent
(@NotNull TeamProgression team, @Range(from=0, to=Integer.MAX_VALUE) int oldProgression, @Range(from=0, to=Integer.MAX_VALUE) int newProgression, @NotNull AdvancementKey advancementKey) Creates a newProgressionUpdateEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets theAdvancementKey
of the updatedAdvancement
.static HandlerList
Gets the new progression after the update.Gets the old progression prior to the update.Gets theTeamProgression
of the updated team.int
hashCode()
toString()
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ProgressionUpdateEvent
public ProgressionUpdateEvent(@NotNull @NotNull TeamProgression team, @Range(from=0, to=Integer.MAX_VALUE) int oldProgression, @Range(from=0, to=Integer.MAX_VALUE) int newProgression, @NotNull @NotNull AdvancementKey advancementKey) Creates a newProgressionUpdateEvent
.- Parameters:
team
- TheTeamProgression
of the updated team.oldProgression
- The old progression prior to the update.newProgression
- The new progression after the update.advancementKey
- TheAdvancementKey
of the updatedAdvancement
.
-
-
Method Details
-
getTeamProgression
Gets theTeamProgression
of the updated team.- Returns:
- The
TeamProgression
of the updated team.
-
getOldProgression
Gets the old progression prior to the update.- Returns:
- The old progression prior to the update.
-
getNewProgression
Gets the new progression after the update.- Returns:
- The new progression after the update.
-
getAdvancementKey
Gets theAdvancementKey
of the updatedAdvancement
.- Returns:
- The
AdvancementKey
of the updatedAdvancement
.
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
toString
-
equals
-
hashCode
public int hashCode()
-