Class AdvancementProgressionUpdateEvent
java.lang.Object
org.bukkit.event.Event
com.fren_gor.ultimateAdvancementAPI.events.advancement.AdvancementProgressionUpdateEvent
Called when a team's progression of an advancement changes.
This event differs from ProgressionUpdateEvent
because it is called by Advancement.setProgression(TeamProgression, Player, int, boolean)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAdvancementProgressionUpdateEvent
(@NotNull TeamProgression team, @Range(from=0, to=Integer.MAX_VALUE) int oldProgression, @Range(from=0, to=Integer.MAX_VALUE) int newProgression, @NotNull Advancement advancement) Creates a newAdvancementProgressionUpdateEvent
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets 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
-
AdvancementProgressionUpdateEvent
public AdvancementProgressionUpdateEvent(@NotNull @NotNull TeamProgression team, @Range(from=0, to=Integer.MAX_VALUE) int oldProgression, @Range(from=0, to=Integer.MAX_VALUE) int newProgression, @NotNull @NotNull Advancement advancement) Creates a newAdvancementProgressionUpdateEvent
.- Parameters:
team
- TheTeamProgression
of the updated team.oldProgression
- The old progression prior to the update.newProgression
- The new progression after the update.advancement
- 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.
-
getAdvancement
Gets the updatedAdvancement
.- Returns:
- The updated
Advancement
.
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
toString
-
equals
-
hashCode
public int hashCode()
-