程序包 org.bukkit.event.player

# 类 PlayerExpChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerExpChangeEvent

public class PlayerExpChangeEvent extends PlayerEvent
当玩家经验值发生变化时调用此事件.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 org.bukkit.event.Event

  `Event.Result`

- ## 字段概要

  ### 从类继承的字段 org.bukkit.event.player.PlayerEvent

  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerExpChangeEvent(@NotNull Player player, int expAmount)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getAmount()`
  获得玩家将要获得的经验.
  `static @NotNull HandlerList`
  `getHandlerList()`
  `@NotNull HandlerList`
  `getHandlers()`
  `void`
  `setAmount(int amount)`
  设置玩家将要获得的经验.

  ### 从类继承的方法 org.bukkit.event.player.PlayerEvent

  `getPlayer`

  ### 从类继承的方法 org.bukkit.event.Event

  `getEventName, isAsynchronous`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### PlayerExpChangeEvent

    public PlayerExpChangeEvent(@NotNull @NotNull 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

    @NotNull public @NotNull HandlerList getHandlers()
    指定者:
      `getHandlers` 在类中 `Event`

  - ### getHandlerList

    @NotNull public static @NotNull HandlerList getHandlerList()