Class PlayerExpChangeEvent


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

  • Method Details

    • getSource

      @Nullable public @Nullable Entity getSource()
      Get the source that provided the experience.
      Returns:
      The source of the experience
    • 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 @NotNull HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()