类 PlayerExpChangeEvent


public class PlayerExpChangeEvent extends PlayerEvent
当玩家经验值发生变化时调用此事件.
  • 构造器详细资料

    • PlayerExpChangeEvent

      public PlayerExpChangeEvent(Player player, int expAmount)
  • 方法详细资料

    • getAmount

      public int getAmount()
      获得玩家将要获得的经验.

      原文:Get the amount of experience the player will receive

      返回:
      将要获得的经验
    • setAmount

      public void setAmount(int amount)
      设置玩家将要获得的经验.

      原文:Set the amount of experience the player will receive

      参数:
      amount - 设置的经验
    • getHandlers

      public HandlerList getHandlers()
      指定者:
      getHandlers 在类中 Event
    • getHandlerList

      public static HandlerList getHandlerList()