Class PlayerExpChangeEvent


public class PlayerExpChangeEvent extends PlayerEvent
Called when a players experience changes naturally
  • Constructor Details

    • PlayerExpChangeEvent

      public PlayerExpChangeEvent(@NotNull Player player, int expAmount)
  • Method Details

    • getAmount

      public int getAmount()
      Get the amount of experience the player will receive
      Returns:
      The amount of experience
    • setAmount

      public void setAmount(int amount)
      Set the amount of experience the player will receive
      Parameters:
      amount - The amount of experience to set
    • getHandlers

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

      @NotNull public static HandlerList getHandlerList()