类 PlayerXpEvent.XpChange

封闭类:
PlayerXpEvent

public static class PlayerXpEvent.XpChange extends PlayerXpEvent
This event is fired when the player's experience changes through the Player.giveExperiencePoints(int) method. It can be cancelled, and no further processing will be done.
  • 字段详细资料

    • amount

      private int amount
  • 构造器详细资料

    • XpChange

      public XpChange(Player player, int amount)
  • 方法详细资料

    • getAmount

      public int getAmount()
    • setAmount

      public void setAmount(int amount)