# 接口的使用
org.bukkit.entity.Player

使用Player的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.block
用于操作在`世界`内的三位像素(方块)，包括一些特定的状态.
org.bukkit.boss
与创建Boss血量条(出现在玩家客户端屏幕顶部)有关的类.
org.bukkit.conversations
致力于简化玩家与插件的直接通信的类(玩家与插件的对话，典型的场景比如操作的确认、提供插件所需数据).
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.
org.bukkit.event.block
与`方块`被改变或与`世界`进行交互等情况相关的`事件`.
org.bukkit.event.enchantment
与`附魔台`操作相关的`事件`.
org.bukkit.event.entity
与`实体`相关的`事件`，不包括 一些直接引用的更具体的实体类型.
org.bukkit.event.hanging
与`悬挂实体`相关的`事件`.
org.bukkit.event.inventory
与`物品栏`操作相关的`事件`.
org.bukkit.event.player
与`玩家`相关的`事件`.
org.bukkit.event.raid
与袭击有关的`事件`(Minecraft Wiki - 袭击).
org.bukkit.event.server
与服务器程序状态变化有关的`事件`.
org.bukkit.event.world
与`世界`状态和变化有关的`事件`.
org.bukkit.map
用于简化处理`地图`显示内容的类.
org.bukkit.plugin.messaging
用于设定插件至客户端的消息传输协议的类.
org.spigotmc.event.player
Spigot特有的玩家事件.

- ## org.bukkit中Player的使用

  返回Player的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @Nullable Player`
  Bukkit.`getPlayer(@NotNull String name)`
  使用给定玩家名模糊搜索玩家（名字最近似的玩家）.
  `static @Nullable Player`
  Bukkit.`getPlayer(@NotNull UUID id)`
  使用给定`UUID`获取玩家.
  `@Nullable Player`
  OfflinePlayer.`getPlayer()`
  获取一个 `Player`对象
  `@Nullable Player`
  Server.`getPlayer(@NotNull String name)`
  使用给定玩家名模糊搜索玩家（名字最近似的玩家）.
  `@Nullable Player`
  Server.`getPlayer(@NotNull UUID id)`
  使用给定`UUID`获取玩家.
  `static @Nullable Player`
  Bukkit.`getPlayerExact(@NotNull String name)`
  使用给定玩家名精确查找玩家, 不区分大小写.
  `@Nullable Player`
  Server.`getPlayerExact(@NotNull String name)`
  使用给定玩家名精确查找玩家, 不区分大小写.
  返回变量类型为Player的类型的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull Collection<? extends Player>`
  Bukkit.`getOnlinePlayers()`
  获取所有在线玩家的集合的视图.
  `@NotNull Collection<? extends Player>`
  Server.`getOnlinePlayers()`
  获取所有在线玩家的集合的视图.
  `@NotNull List<Player>`
  World.`getPlayers()`
  获取一个这个世界的所有玩家的列表.
  `@NotNull Collection<Player>`
  Chunk.`getPlayersSeeingChunk()`
  Get a list of all players who are can view the chunk from their client
  `@NotNull Collection<Player>`
  World.`getPlayersSeeingChunk(int x, int z)`
  Get a list of all players who are can view the specified chunk from their client
  `@NotNull Collection<Player>`
  World.`getPlayersSeeingChunk(@NotNull Chunk chunk)`
  Get a list of all players who are can view the specified chunk from their client
  `static @NotNull List<Player>`
  Bukkit.`matchPlayer(@NotNull String name)`
  尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.
  `@NotNull List<Player>`
  Server.`matchPlayer(@NotNull String name)`
  尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.
  参数类型为Player的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull ItemStack`
  Bukkit.`craftItem(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player)`
  Get the crafted item using the list of `ItemStack` provided.
  `@NotNull ItemStack`
  Server.`craftItem(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player)`
  Get the crafted item using the list of `ItemStack` provided.
  `static @NotNull ItemCraftResult`
  Bukkit.`craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player)`
  Get the crafted item using the list of `ItemStack` provided.
  `@NotNull ItemCraftResult`
  Server.`craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player)`
  Get the crafted item using the list of `ItemStack` provided.

- ## org.bukkit.block中Player的使用

  返回Player的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Player`
  Sign.`getAllowedEditor()`
  Gets the player that is currently allowed to edit this sign.
  返回变量类型为Player的类型的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Collection<Player>`
  TrialSpawner.`getTrackedPlayers()`
  Gets the players this spawner is currently tracking.
  参数类型为Player的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `float`
  Block.`getBreakSpeed(@NotNull Player player)`
  Gets the speed at which the given player would break this block, taking into account tools, potion effects, whether or not the player is in water, enchantments, etc.
  `@NotNull SignSide`
  Sign.`getTargetSide(@NotNull Player player)`
  Gets the side of this sign the given player is currently standing on.
  `boolean`
  TrialSpawner.`isTrackingPlayer(@NotNull Player player)`
  Checks if this spawner is currently tracking the provided player.
  `void`
  TrialSpawner.`startTrackingPlayer(@NotNull Player player)`
  Force this spawner to start tracking the provided player.
  `void`
  TrialSpawner.`stopTrackingPlayer(@NotNull Player player)`
  Force this spawner to stop tracking the provided player.
  `void`
  SculkShrieker.`tryShriek(@Nullable Player player)`
  Simulates a player causing a vibration.

- ## org.bukkit.boss中Player的使用

  返回变量类型为Player的类型的org.bukkit.boss中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Player>`
  BossBar.`getPlayers()`
  返回所有能看到这个boss血条的玩家.
  参数类型为Player的org.bukkit.boss中的方法
  修饰符和类型
  方法
  说明
  `void`
  BossBar.`addPlayer(@NotNull Player player)`
  向该boss血条内添加一个玩家（也就是使该玩家能看见这个血条）.
  `void`
  BossBar.`removePlayer(@NotNull Player player)`
  从一个boss血条内移除某个玩家（就是使指定玩家看不见该BOSS血条）.

- ## org.bukkit.conversations中Player的使用

  参数类型为Player的org.bukkit.conversations中的方法
  修饰符和类型
  方法
  说明
  `protected abstract @Nullable Prompt`
  PlayerNamePrompt.`acceptValidatedInput(@NotNull ConversationContext context, @NotNull Player input)`
  Override this method to perform some action with the user's player name response.

- ## org.bukkit.entity中Player的使用

  返回Player的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Player`
  LightningStrike.`getCausingPlayer()`
  Get the `Player` that caused this lightning to strike.
  `@Nullable Player`
  LivingEntity.`getKiller()`
  获取击杀指定生物实体的玩家.
  返回变量类型为Player的类型的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `Set<Player>`
  Player.Spigot.`getHiddenPlayers()`
  获取所有用 `hidePlayer(org.bukkit.entity.Player)` 隐藏的玩家.
  `@NotNull Set<Player>`
  Entity.`getTrackedBy()`
  Get all players that are currently tracking this entity.
  参数类型为Player的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  Player.`canSee(@NotNull Player player)`
  检查该玩家是否能看到某玩家.
  `void`
  Player.`hidePlayer(@NotNull Player player)`
  已过时。
  另请参阅 `hidePlayer(Plugin, Player)`
  `void`
  Player.`hidePlayer(@NotNull Plugin plugin, @NotNull Player player)`
  让该玩家看不见某玩家.
  `void`
  LightningStrike.`setCausingPlayer(@Nullable Player player)`
  Set the `Player` that caused this lightning to strike.
  `void`
  Player.`showPlayer(@NotNull Player player)`
  已过时。
  另请参阅 `showPlayer(Plugin, Player)`
  `void`
  Player.`showPlayer(@NotNull Plugin plugin, @NotNull Player player)`
  让该玩家能看到之前被隐藏的玩家.

- ## org.bukkit.event.block中Player的使用

  声明为Player的org.bukkit.event.block中的字段
  修饰符和类型
  字段
  说明
  `protected Player`
  BlockPlaceEvent.`player`
  返回Player的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Player`
  BlockBreakEvent.`getPlayer()`
  获取破坏这个方块的玩家.
  `@Nullable Player`
  BlockCanBuildEvent.`getPlayer()`
  获得放置这个方块的玩家.
  `@NotNull Player`
  BlockDamageAbortEvent.`getPlayer()`
  Gets the player that stopped damaging the block involved in this event.
  `@NotNull Player`
  BlockDamageEvent.`getPlayer()`
  获取试图损坏这个方块的玩家.
  `@NotNull Player`
  BlockDropItemEvent.`getPlayer()`
  获取破坏这个方块的玩家.
  `@Nullable Player`
  BlockFertilizeEvent.`getPlayer()`
  获取进行施肥的玩家.
  `@Nullable Player`
  BlockIgniteEvent.`getPlayer()`
  获取点燃方块的玩家,如果不是玩家点燃的就返回null.
  `@NotNull Player`
  BlockPlaceEvent.`getPlayer()`
  获得放置这个方块的玩家.
  `@NotNull Player`
  SignChangeEvent.`getPlayer()`
  获得设置这个牌子上的字的玩家.
  参数类型为Player的org.bukkit.event.block中的构造器
  限定符
  构造器
  说明
  ``
  `BlockBreakEvent(@NotNull Block theBlock, @NotNull Player player)`
  ``
  `BlockCanBuildEvent(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild)`
  ``
  `BlockDamageAbortEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand)`
  ``
  `BlockDamageEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand, boolean instaBreak)`
  ``
  `BlockDropItemEvent(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items)`
  ``
  `BlockFertilizeEvent(@NotNull Block theBlock, @Nullable Player player, @NotNull List<BlockState> blocks)`
  ``
  `BlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)`
  ``
  `BlockPlaceEvent(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)`
  已过时。
  ``
  `BlockPlaceEvent(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand)`
  ``
  `SignChangeEvent(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines)`
  已过时。
  ``
  `SignChangeEvent(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines, @NotNull Side side)`

- ## org.bukkit.event.enchantment中Player的使用

  返回Player的org.bukkit.event.enchantment中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Player`
  EnchantItemEvent.`getEnchanter()`
  获取附魔这个物品的玩家。
  `@NotNull Player`
  PrepareItemEnchantEvent.`getEnchanter()`
  获取正在为物品附魔的玩家.
  参数类型为Player的org.bukkit.event.enchantment中的构造器
  限定符
  构造器
  说明
  ``
  `EnchantItemEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment,Integer> enchants, @NotNull Enchantment enchantmentHint, int levelHint, int i)`
  ``
  `PrepareItemEnchantEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull EnchantmentOffer[] offers, int bonus)`

- ## org.bukkit.event.entity中Player的使用

  返回Player的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Player`
  PlayerDeathEvent.`getEntity()`
  `@Nullable Player`
  EntityPlaceEvent.`getPlayer()`
  返回放置此实体的玩家.
  `final @NotNull Player`
  PlayerLeashEntityEvent.`getPlayer()`
  Returns the player involved in this event
  `@Nullable Player`
  SheepDyeWoolEvent.`getPlayer()`
  返回正在给这只羊染色的玩家 (若存在).
  参数类型为Player的org.bukkit.event.entity中的构造器
  限定符
  构造器
  说明
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)`
  已过时。
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand)`
  ``
  `PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable String deathMessage)`
  ``
  `PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable String deathMessage)`
  ``
  `PlayerDeathEvent(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, @Nullable String deathMessage)`
  ``
  `PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher)`
  已过时。
  ``
  `PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand)`
  ``
  `SheepDyeWoolEvent(@NotNull Sheep sheep, @NotNull DyeColor color, @Nullable Player player)`

- ## org.bukkit.event.hanging中Player的使用

  返回Player的org.bukkit.event.hanging中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Player`
  HangingPlaceEvent.`getPlayer()`
  返回放置这个悬挂实体的玩家.
  参数类型为Player的org.bukkit.event.hanging中的构造器
  限定符
  构造器
  说明
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand)`
  已过时。
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand, @Nullable ItemStack itemStack)`

- ## org.bukkit.event.inventory中Player的使用

  返回Player的org.bukkit.event.inventory中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Player`
  FurnaceExtractEvent.`getPlayer()`
  获取触发这个事件的玩家.
  参数类型为Player的org.bukkit.event.inventory中的构造器
  限定符
  构造器
  说明
  ``
  `FurnaceExtractEvent(@NotNull Player player, @NotNull Block block, @NotNull Material itemType, int itemAmount, int exp)`

- ## org.bukkit.event.player中Player的使用

  声明为Player的org.bukkit.event.player中的字段
  修饰符和类型
  字段
  说明
  `protected Player`
  PlayerEvent.`player`
  返回Player的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `final @NotNull Player`
  PlayerEvent.`getPlayer()`
  返回哪个玩家触发了此事件.
  `@NotNull Player`
  PlayerUnleashEntityEvent.`getPlayer()`
  获得解开拴绳的玩家.
  返回变量类型为Player的类型的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Set<Player>`
  AsyncPlayerChatEvent.`getRecipients()`
  获取一个将看到这条消息的玩家的集合。
  `@NotNull Set<Player>`
  PlayerChatEvent.`getRecipients()`
  已过时。
  获取一个将被展示这条消息的玩家的集合。
  `@NotNull Set<Player>`
  PlayerCommandPreprocessEvent.`getRecipients()`
  已过时。
  该方法无法保证在每个版本上的效果
  参数类型为Player的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `void`
  PlayerChatEvent.`setPlayer(@NotNull Player player)`
  已过时。
  设置这条消息显示成的玩家，或谁将执行这条命令.
  `void`
  PlayerCommandPreprocessEvent.`setPlayer(@NotNull Player player)`
  设置这个命令的执行者
  参数类型为Player的org.bukkit.event.player中的构造器
  限定符
  构造器
  说明
  ``
  `AsyncPlayerChatEvent(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players)`
  ``
  `AsyncPlayerChatPreviewEvent(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players)`
  已过时。
  ``
  `PlayerAdvancementDoneEvent(@NotNull Player who, @NotNull Advancement advancement)`
  ``
  `PlayerAnimationEvent(@NotNull Player player)`
  已过时。
  ``
  `PlayerAnimationEvent(@NotNull Player player, @NotNull PlayerAnimationType playerAnimationType)`
  构造一个新的PlayerAnimation事件.
  ``
  `PlayerArmorStandManipulateEvent(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot)`
  已过时。
  ``
  `PlayerArmorStandManipulateEvent(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed)`
  已过时。
  ``
  `PlayerBedEnterEvent(@NotNull Player who, @NotNull Block bed, @NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult)`
  ``
  `PlayerBedLeaveEvent(@NotNull Player who, @NotNull Block bed, boolean setBedSpawn)`
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketEntityEvent(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketFishEvent(@NotNull Player player, @NotNull Fish fish, @NotNull ItemStack waterBucket, @NotNull ItemStack fishBucket, @NotNull EquipmentSlot hand)`
  已过时。
  ``
  `PlayerChangedMainHandEvent(@NotNull Player who, @NotNull MainHand mainHand)`
  ``
  `PlayerChangedWorldEvent(@NotNull Player player, @NotNull World from)`
  ``
  `PlayerChannelEvent(@NotNull Player player, @NotNull String channel)`
  ``
  `PlayerChatEvent(@NotNull Player player, @NotNull String message)`
  已过时。
  ``
  `PlayerChatEvent(@NotNull Player player, @NotNull String message, @NotNull String format, @NotNull Set<Player> recipients)`
  已过时。
  ``
  `PlayerChatTabCompleteEvent(@NotNull Player who, @NotNull String message, @NotNull Collection<String> completions)`
  已过时。
  ``
  `PlayerCommandPreprocessEvent(@NotNull Player player, @NotNull String message)`
  ``
  `PlayerCommandPreprocessEvent(@NotNull Player player, @NotNull String message, @NotNull Set<Player> recipients)`
  ``
  `PlayerCommandSendEvent(@NotNull Player player, @NotNull Collection<String> commands)`
  ``
  `PlayerDropItemEvent(@NotNull Player player, @NotNull Item drop)`
  ``
  `PlayerEditBookEvent(@NotNull Player who, int slot, @NotNull BookMeta previousBookMeta, @NotNull BookMeta newBookMeta, boolean isSigning)`
  ``
  `PlayerEggThrowEvent(@NotNull Player player, @NotNull Egg egg, boolean hatching, byte numHatches, @NotNull EntityType hatchingType)`
  ``
  `PlayerEvent(@NotNull Player who)`
  ``
  `PlayerExpChangeEvent(@NotNull Player player, int expAmount)`
  ``
  `PlayerExpCooldownChangeEvent(@NotNull Player player, int newcooldown, @NotNull PlayerExpCooldownChangeEvent.ChangeReason reason)`
  ``
  `PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @NotNull PlayerFishEvent.State state)`
  ``
  `PlayerFishEvent(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @Nullable EquipmentSlot hand, @NotNull PlayerFishEvent.State state)`
  ``
  `PlayerGameModeChangeEvent(@NotNull Player player, @NotNull GameMode newGameMode)`
  ``
  `PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull List<ItemStack> itemsHarvested)`
  已过时。
  ``
  `PlayerHarvestBlockEvent(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> itemsHarvested)`
  ``
  `PlayerHideEntityEvent(@NotNull Player who, @NotNull Entity entity)`
  ``
  `PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position)`
  ``
  `PlayerInteractAtEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand)`
  ``
  `PlayerInteractEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity)`
  ``
  `PlayerInteractEntityEvent(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull EquipmentSlot hand)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Vector clickedPosition)`
  ``
  `PlayerItemBreakEvent(@NotNull Player player, @NotNull ItemStack brokenItem)`
  ``
  `PlayerItemConsumeEvent(@NotNull Player player, @NotNull ItemStack item)`
  已过时。
  请使用 `PlayerItemConsumeEvent(Player, ItemStack, EquipmentSlot)`
  ``
  `PlayerItemConsumeEvent(@NotNull Player player, @NotNull ItemStack item, @NotNull EquipmentSlot hand)`
  ``
  `PlayerItemDamageEvent(@NotNull Player player, @NotNull ItemStack what, int damage)`
  ``
  `PlayerItemHeldEvent(@NotNull Player player, int previous, int current)`
  ``
  `PlayerItemMendEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull ExperienceOrb experienceOrb, int repairAmount)`
  已过时。
  ``
  `PlayerItemMendEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount)`
  ``
  `PlayerJoinEvent(@NotNull Player playerJoined, @Nullable String joinMessage)`
  ``
  `PlayerKickEvent(@NotNull Player playerKicked, @NotNull String kickReason, @NotNull String leaveMessage)`
  ``
  `PlayerLevelChangeEvent(@NotNull Player player, int oldLevel, int newLevel)`
  ``
  `PlayerLinksSendEvent(@NotNull Player player, @NotNull ServerLinks links)`
  ``
  `PlayerLocaleChangeEvent(@NotNull Player who, @NotNull String locale)`
  ``
  `PlayerLoginEvent(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address)`
  这个构造器默认踢出消息为空、登录状态为ALLOWED.
  ``
  `PlayerLoginEvent(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address, @NotNull InetAddress realAddress)`
  这个构造器默认踢出消息为空、登录状态为ALLOWED.
  ``
  `PlayerLoginEvent(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address, @NotNull PlayerLoginEvent.Result result, @NotNull String message, @NotNull InetAddress realAddress)`
  此构造器预配置事件的结果和消息.
  ``
  `PlayerMoveEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)`
  ``
  `PlayerPickupArrowEvent(@NotNull Player player, @NotNull Item item, @NotNull AbstractArrow arrow)`
  ``
  `PlayerPickupItemEvent(@NotNull Player player, @NotNull Item item, int remaining)`
  已过时。
  ``
  `PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)`
  ``
  `PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)`
  ``
  `PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius)`
  ``
  `PlayerQuitEvent(@NotNull Player who, @Nullable String quitMessage)`
  ``
  `PlayerRecipeBookClickEvent(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick)`
  ``
  `PlayerRecipeBookSettingsChangeEvent(@NotNull Player player, @NotNull PlayerRecipeBookSettingsChangeEvent.RecipeBookType recipeBookType, boolean open, boolean filtering)`
  ``
  `PlayerRecipeDiscoverEvent(@NotNull Player who, @NotNull NamespacedKey recipe)`
  ``
  `PlayerRegisterChannelEvent(@NotNull Player player, @NotNull String channel)`
  ``
  `PlayerResourcePackStatusEvent(@NotNull Player who, @NotNull UUID id, @NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus)`
  ``
  `PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn)`
  已过时。
  ``
  `PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn)`
  已过时。
  ``
  `PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn, @NotNull PlayerRespawnEvent.RespawnReason respawnReason)`
  ``
  `PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item)`
  已过时。
  ``
  `PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull Vector velocity)`
  ``
  `PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what)`
  已过时。
  ``
  `PlayerShearEntityEvent(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand)`
  ``
  `PlayerShowEntityEvent(@NotNull Player who, @NotNull Entity entity)`
  ``
  `PlayerSignOpenEvent(@NotNull Player player, @NotNull Sign sign, @NotNull Side side, @NotNull PlayerSignOpenEvent.Cause cause)`
  ``
  `PlayerSpawnChangeEvent(@NotNull Player player, @Nullable Location newSpawn, boolean forced, @NotNull PlayerSpawnChangeEvent.Cause cause)`
  ``
  `PlayerStatisticIncrementEvent(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue)`
  ``
  `PlayerStatisticIncrementEvent(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull EntityType entityType)`
  ``
  `PlayerStatisticIncrementEvent(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull Material material)`
  ``
  `PlayerSwapHandItemsEvent(@NotNull Player player, @NotNull ItemStack mainHandItem, @NotNull ItemStack offHandItem)`
  ``
  `PlayerTakeLecternBookEvent(@NotNull Player who, @NotNull Lectern lectern)`
  ``
  `PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)`
  ``
  `PlayerTeleportEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)`
  ``
  `PlayerToggleFlightEvent(@NotNull Player player, boolean isFlying)`
  ``
  `PlayerToggleSneakEvent(@NotNull Player player, boolean isSneaking)`
  ``
  `PlayerToggleSprintEvent(@NotNull Player player, boolean isSprinting)`
  ``
  `PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player)`
  已过时。
  ``
  `PlayerUnleashEntityEvent(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand)`
  ``
  `PlayerUnregisterChannelEvent(@NotNull Player player, @NotNull String channel)`
  ``
  `PlayerVelocityEvent(@NotNull Player player, @NotNull Vector velocity)`
  类型变量类型为Player的org.bukkit.event.player中的构造器参数
  限定符
  构造器
  说明
  ``
  `AsyncPlayerChatEvent(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players)`
  ``
  `AsyncPlayerChatPreviewEvent(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players)`
  已过时。
  ``
  `PlayerChatEvent(@NotNull Player player, @NotNull String message, @NotNull String format, @NotNull Set<Player> recipients)`
  已过时。
  ``
  `PlayerCommandPreprocessEvent(@NotNull Player player, @NotNull String message, @NotNull Set<Player> recipients)`

- ## org.bukkit.event.raid中Player的使用

  返回Player的org.bukkit.event.raid中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Player`
  RaidTriggerEvent.`getPlayer()`
  返回触发此袭击的玩家.
  返回变量类型为Player的类型的org.bukkit.event.raid中的方法
  修饰符和类型
  方法
  说明
  `@NotNull List<Player>`
  RaidFinishEvent.`getWinners()`
  返回包含了所有赢家的不可变列表.
  参数类型为Player的org.bukkit.event.raid中的构造器
  限定符
  构造器
  说明
  ``
  `RaidTriggerEvent(@NotNull Raid raid, @NotNull World world, @NotNull Player player)`
  类型变量类型为Player的org.bukkit.event.raid中的构造器参数
  限定符
  构造器
  说明
  ``
  `RaidFinishEvent(@NotNull Raid raid, @NotNull World world, @NotNull List<Player> winners)`

- ## org.bukkit.event.server中Player的使用

  返回变量类型为Player的类型的org.bukkit.event.server中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Iterator<Player>`
  ServerListPingEvent.`iterator()`

- ## org.bukkit.event.world中Player的使用

  返回Player的org.bukkit.event.world中的方法
  修饰符和类型
  方法
  说明
  `@Nullable Player`
  StructureGrowEvent.`getPlayer()`
  获取“种”下这个结构的玩家.
  参数类型为Player的org.bukkit.event.world中的构造器
  限定符
  构造器
  说明
  ``
  `StructureGrowEvent(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks)`

- ## org.bukkit.map中Player的使用

  参数类型为Player的org.bukkit.map中的方法
  修饰符和类型
  方法
  说明
  `abstract void`
  MapRenderer.`render(@NotNull MapView map, @NotNull MapCanvas canvas, @NotNull Player player)`
  Render to the given map.

- ## org.bukkit.plugin.messaging中Player的使用

  参数类型为Player的org.bukkit.plugin.messaging中的方法
  修饰符和类型
  方法
  说明
  `void`
  Messenger.`dispatchIncomingMessage(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message)`
  调度指定接收消息的任何注册过的监听器.
  `void`
  StandardMessenger.`dispatchIncomingMessage(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message)`
  `void`
  PluginMessageListener.`onPluginMessageReceived(@NotNull String channel, @NotNull Player player, @org.jetbrains.annotations.NotNull byte[] message)`
  当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法.

- ## org.spigotmc.event.player中Player的使用

  参数类型为Player的org.spigotmc.event.player中的构造器
  限定符
  构造器
  说明
  ``
  `PlayerSpawnLocationEvent(@NotNull Player who, @NotNull Location spawnLocation)`