Class PlayerExpCooldownChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpCooldownChangeEvent

public class PlayerExpCooldownChangeEvent extends PlayerEvent
Called when a player's experience cooldown changes.
  • Constructor Details

  • Method Details

    • getReason

      @NotNull public @NotNull PlayerExpCooldownChangeEvent.ChangeReason getReason()
      Gets the reason for the change.
      Returns:
      The reason for the change
    • getNewCooldown

      public int getNewCooldown()
      Gets the new cooldown for the player.
      Returns:
      The new cooldown
      See Also:
    • setNewCooldown

      public void setNewCooldown(int newCooldown)
      Sets the new cooldown for the player.
      Parameters:
      newCooldown - The new cooldown to set
      See Also:
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()