接口的使用
org.bukkit.entity.Player
使用Player的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.与创建Boss血量条(出现在玩家客户端屏幕顶部)有关的类.
致力于简化玩家与插件的直接通信的类(玩家与插件的对话,典型的场景比如操作的确认、提供插件所需数据).
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.与袭击有关的
事件(Minecraft Wiki - 袭击).与服务器程序状态变化有关的
事件.用于简化处理
地图显示内容的类.用于设定插件至客户端的消息传输协议的类.
Spigot特有的玩家事件.
-
org.bukkit中Player的使用
返回Player的org.bukkit中的方法修饰符和类型方法说明使用给定玩家名模糊搜索玩家(名字最近似的玩家).使用给定UUID获取玩家.OfflinePlayer.getPlayer()获取一个Player对象使用给定玩家名模糊搜索玩家(名字最近似的玩家).使用给定UUID获取玩家.Bukkit.getPlayerExact(@NotNull String name) 使用给定玩家名精确查找玩家, 不区分大小写.Server.getPlayerExact(@NotNull String name) 使用给定玩家名精确查找玩家, 不区分大小写.返回变量类型为Player的类型的org.bukkit中的方法修饰符和类型方法说明static @NotNull Collection<? extends Player>Bukkit.getOnlinePlayers()获取所有在线玩家的集合的视图.@NotNull Collection<? extends Player>Server.getOnlinePlayers()获取所有在线玩家的集合的视图.World.getPlayers()获取一个这个世界的所有玩家的列表.Chunk.getPlayersSeeingChunk()Get a list of all players who are can view the chunk from their clientWorld.getPlayersSeeingChunk(int x, int z) Get a list of all players who are can view the specified chunk from their clientWorld.getPlayersSeeingChunk(@NotNull Chunk chunk) Get a list of all players who are can view the specified chunk from their clientBukkit.matchPlayer(@NotNull String name) 尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.Server.matchPlayer(@NotNull String name) 尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.参数类型为Player的org.bukkit中的方法修饰符和类型方法说明Get the crafted item using the list ofItemStackprovided.Get the crafted item using the list ofItemStackprovided.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.Server.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided. -
org.bukkit.block中Player的使用
返回Player的org.bukkit.block中的方法返回变量类型为Player的类型的org.bukkit.block中的方法参数类型为Player的org.bukkit.block中的方法修饰符和类型方法说明floatBlock.getBreakSpeed(@NotNull Player player) 获取指定玩家破坏此方块的速度, 考虑工具、药水效果、玩家是否在水中、附魔等因素.Sign.getTargetSide(@NotNull Player player) Gets the side of this sign the given player is currently standing on.booleanTrialSpawner.isTrackingPlayer(@NotNull Player player) 检查此刷怪笼当前是否正在追踪指定的玩家.voidTrialSpawner.startTrackingPlayer(@NotNull Player player) 强制此刷怪笼开始追踪指定的玩家.voidTrialSpawner.stopTrackingPlayer(@NotNull Player player) 强制此刷怪笼停止追踪指定的玩家.void模拟玩家引起振动. -
org.bukkit.boss中Player的使用
返回变量类型为Player的类型的org.bukkit.boss中的方法参数类型为Player的org.bukkit.boss中的方法 -
org.bukkit.conversations中Player的使用
参数类型为Player的org.bukkit.conversations中的方法修饰符和类型方法说明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中的方法修饰符和类型方法说明LightningStrike.getCausingPlayer()Get thePlayerthat caused this lightning to strike.LivingEntity.getKiller()获取击杀指定生物实体的玩家.返回变量类型为Player的类型的org.bukkit.entity中的方法修饰符和类型方法说明Player.Spigot.getHiddenPlayers()获取所有用hidePlayer(org.bukkit.entity.Player)隐藏的玩家.Entity.getTrackedBy()Get all players that are currently tracking this entity.参数类型为Player的org.bukkit.entity中的方法修饰符和类型方法说明voidActivate this Creaking to target and follow a player.boolean检查该玩家是否能看到某玩家.voidPlayer.hidePlayer(@NotNull Player player) 已过时。voidPlayer.hidePlayer(@NotNull Plugin plugin, @NotNull Player player) 让该玩家看不见某玩家.voidLightningStrike.setCausingPlayer(@Nullable Player player) Set thePlayerthat caused this lightning to strike.voidPlayer.showPlayer(@NotNull Player player) 已过时。voidPlayer.showPlayer(@NotNull Plugin plugin, @NotNull Player player) 让该玩家能看到之前被隐藏的玩家. -
org.bukkit.event.block中Player的使用
声明为Player的org.bukkit.event.block中的字段返回Player的org.bukkit.event.block中的方法修饰符和类型方法说明BlockBreakEvent.getPlayer()获取破坏这个方块的玩家.BlockBrushEvent.getPlayer()Gets the Player that is brushing the block involved in this event.BlockCanBuildEvent.getPlayer()获得放置这个方块的玩家.BlockDamageAbortEvent.getPlayer()Gets the player that stopped damaging the block involved in this event.BlockDamageEvent.getPlayer()获取试图损坏这个方块的玩家.BlockDispenseLootEvent.getPlayer()Gets the player associated with this event.BlockDropItemEvent.getPlayer()获取破坏这个方块的玩家.BlockFertilizeEvent.getPlayer()获取进行施肥的玩家.BlockIgniteEvent.getPlayer()获取点燃方块的玩家,如果不是玩家点燃的就返回null.BlockPlaceEvent.getPlayer()获得放置这个方块的玩家.SignChangeEvent.getPlayer()获得设置这个牌子上的字的玩家.参数类型为Player的org.bukkit.event.block中的构造器限定符构造器说明BlockBreakEvent(@NotNull Block theBlock, @NotNull Player player) BlockBrushEvent(@NotNull Block theBlock, @NotNull BlockState newState, @NotNull Player player) BlockCanBuildEvent(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild) BlockDamageEvent(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand, boolean instaBreak) BlockDispenseLootEvent(@Nullable Player player, @NotNull Block theBlock, @NotNull List<ItemStack> dispensedLoot) 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, @NotNull Side side) -
org.bukkit.event.enchantment中Player的使用
修饰符和类型方法说明EnchantItemEvent.getEnchanter()获取附魔这个物品的玩家。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 EnchantmentView view, @NotNull Block table, @NotNull ItemStack item, @NotNull EnchantmentOffer[] offers, int bonus) -
org.bukkit.event.entity中Player的使用
修饰符和类型方法说明PlayerDeathEvent.getEntity()EntityPlaceEvent.getPlayer()返回放置此实体的玩家.PlayerLeashEntityEvent.getPlayer()Returns the player involved in this eventSheepDyeWoolEvent.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, @NotNull EquipmentSlot hand) -
org.bukkit.event.hanging中Player的使用
参数类型为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中的构造器 -
org.bukkit.event.player中Player的使用
声明为Player的org.bukkit.event.player中的字段返回变量类型为Player的类型的org.bukkit.event.player中的方法修饰符和类型方法说明AsyncPlayerChatEvent.getRecipients()获取一个将看到这条消息的玩家的集合。PlayerChatEvent.getRecipients()已过时。获取一个将被展示这条消息的玩家的集合。PlayerCommandPreprocessEvent.getRecipients()已过时。该方法无法保证在每个版本上的效果参数类型为Player的org.bukkit.event.player中的方法修饰符和类型方法说明void已过时。设置这条消息显示成的玩家,或谁将执行这条命令.void设置这个命令的执行者参数类型为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) PlayerCustomClickEvent(@NotNull Player player, @NotNull NamespacedKey id, @Nullable com.google.gson.JsonElement data) 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) PlayerInputEvent(@NotNull Player player, @NotNull Input input) 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(@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) 此构造器预配置事件的结果和消息.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, @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) 已过时。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, @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中的方法返回变量类型为Player的类型的org.bukkit.event.raid中的方法参数类型为Player的org.bukkit.event.raid中的构造器类型变量类型为Player的org.bukkit.event.raid中的构造器参数 -
org.bukkit.event.server中Player的使用
返回变量类型为Player的类型的org.bukkit.event.server中的方法 -
org.bukkit.event.world中Player的使用
返回Player的org.bukkit.event.world中的方法参数类型为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中的方法 -
org.bukkit.plugin.messaging中Player的使用
参数类型为Player的org.bukkit.plugin.messaging中的方法修饰符和类型方法说明voidMessenger.dispatchIncomingMessage(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message) 调度指定接收消息的任何注册过的监听器.voidStandardMessenger.dispatchIncomingMessage(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message) voidPluginMessageListener.onPluginMessageReceived(@NotNull String channel, @NotNull Player player, @org.jetbrains.annotations.NotNull byte[] message) 当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法. -
org.spigotmc.event.player中Player的使用
参数类型为Player的org.spigotmc.event.player中的构造器
hidePlayer(Plugin, Player)