程序包 org.bukkit.event.player

# 类 PlayerEvent

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

直接已知子类:
  `AsyncPlayerChatEvent`, `PlayerAdvancementDoneEvent`, `PlayerAnimationEvent`, `PlayerBedEnterEvent`, `PlayerBedLeaveEvent`, `PlayerBucketEntityEvent`, `PlayerBucketEvent`, `PlayerChangedMainHandEvent`, `PlayerChangedWorldEvent`, `PlayerChannelEvent`, `PlayerChatEvent`, `PlayerChatTabCompleteEvent`, `PlayerCommandPreprocessEvent`, `PlayerCommandSendEvent`, `PlayerDropItemEvent`, `PlayerEditBookEvent`, `PlayerEggThrowEvent`, `PlayerExpChangeEvent`, `PlayerExpCooldownChangeEvent`, `PlayerFishEvent`, `PlayerGameModeChangeEvent`, `PlayerHarvestBlockEvent`, `PlayerHideEntityEvent`, `PlayerInteractEntityEvent`, `PlayerInteractEvent`, `PlayerItemBreakEvent`, `PlayerItemConsumeEvent`, `PlayerItemDamageEvent`, `PlayerItemHeldEvent`, `PlayerItemMendEvent`, `PlayerJoinEvent`, `PlayerKickEvent`, `PlayerLevelChangeEvent`, `PlayerLinksSendEvent`, `PlayerLocaleChangeEvent`, `PlayerLoginEvent`, `PlayerMoveEvent`, `PlayerPickupItemEvent`, `PlayerQuitEvent`, `PlayerRecipeBookClickEvent`, `PlayerRecipeBookSettingsChangeEvent`, `PlayerRecipeDiscoverEvent`, `PlayerResourcePackStatusEvent`, `PlayerRespawnEvent`, `PlayerRiptideEvent`, `PlayerShearEntityEvent`, `PlayerShowEntityEvent`, `PlayerSignOpenEvent`, `PlayerSpawnChangeEvent`, `PlayerSpawnLocationEvent`, `PlayerStatisticIncrementEvent`, `PlayerSwapHandItemsEvent`, `PlayerTakeLecternBookEvent`, `PlayerToggleFlightEvent`, `PlayerToggleSneakEvent`, `PlayerToggleSprintEvent`, `PlayerVelocityEvent`

public abstract class PlayerEvent extends Event
代表玩家事件.

- ## 嵌套类概要

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

  `Event.Result`

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `protected Player`
  `player`

- ## 构造器概要

  构造器
  构造器
  说明
  `PlayerEvent(@NotNull Player who)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `final @NotNull Player`
  `getPlayer()`
  返回哪个玩家触发了此事件.

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

  `getEventName, getHandlers, isAsynchronous`

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

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

- ## 字段详细资料

  - ### player

    protected Player player

- ## 构造器详细资料

  - ### PlayerEvent

    public PlayerEvent(@NotNull @NotNull Player who)

- ## 方法详细资料

  - ### getPlayer

    @NotNull public final @NotNull Player getPlayer()
    返回哪个玩家触发了此事件.

    原文:Returns the player involved in this event

    返回:
      触发此事件的玩家