Class PlayerExpChangeEvent


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

  • Method Details

    • getSource

      @Nullable public @Nullable Entity getSource()
      Get the source that provided the experience.
      Returns:
      The source of the experience
      Since:
      1.11
    • getAmount

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

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

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

      @NotNull public static @NotNull HandlerList getHandlerList()
      Since:
      1.1.0