类 PlayerLevelChangeEvent

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

public class PlayerLevelChangeEvent extends PlayerEvent
玩家等级改变事件.
  • 构造器详细资料

    • PlayerLevelChangeEvent

      public PlayerLevelChangeEvent(@NotNull @NotNull Player player, int oldLevel, int newLevel)
  • 方法详细资料

    • getOldLevel

      public int getOldLevel()
      获得此玩家的旧等级.

      原文:Gets the old level of the player

      返回:
      旧等级
    • getNewLevel

      public int getNewLevel()
      获得此玩家升级/降级后的等级.

      原文:Gets the new level of the player

      返回:
      升级/降级后的等级
    • getHandlers

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

      @NotNull public static @NotNull HandlerList getHandlerList()