Package org.bukkit.event.player
Class PlayerExpCooldownChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpCooldownChangeEvent
Called when a player's experience cooldown changes.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerExpCooldownChangeEvent(Player player, int newcooldown, PlayerExpCooldownChangeEvent.ChangeReason reason) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListintGets the new cooldown for the player.Gets the reason for the change.voidsetNewCooldown(int newCooldown) Sets the new cooldown for the player.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
PlayerExpCooldownChangeEventpublic PlayerExpCooldownChangeEvent(@NotNull Player player, int newcooldown, @NotNull PlayerExpCooldownChangeEvent.ChangeReason reason) 
 
- 
- 
Method Details- 
getReasonGets the reason for the change.- Returns:
- The reason for the change
 
- 
getNewCooldownpublic int getNewCooldown()Gets the new cooldown for the player.- Returns:
- The new cooldown
- See Also:
 
- 
setNewCooldownpublic void setNewCooldown(int newCooldown) Sets the new cooldown for the player.- Parameters:
- newCooldown- The new cooldown to set
- See Also:
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-