Class PlayerXpEvent.XpChange

Enclosing class:
PlayerXpEvent

public static class PlayerXpEvent.XpChange extends PlayerXpEvent
This event is fired when the player's experience changes through the PlayerEntity.giveExperiencePoints(int) method. It can be cancelled, and no further processing will be done.
  • Field Details

    • amount

      private int amount
  • Constructor Details

    • XpChange

      public XpChange(PlayerEntity player, int amount)
  • Method Details

    • getAmount

      public int getAmount()
    • setAmount

      public void setAmount(int amount)