Uses of Interface
org.bukkit.entity.Player
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Classes concerning the creation of boss bars that appear at the top of the
player's screen.
Classes dedicated to facilitate direct player-to-plugin communication.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Events
triggered from an enchantment table
.Events
relating to entities that hang
.Events
related to raids.Events
relating to programmatic state
changes on the server.Classes to facilitate plugin handling of
map
displays.Classes dedicated to specialized plugin to client protocols.
Spigot-specific player events.
-
Uses of Player in org.bukkit
Modifier and TypeMethodDescriptionstatic Player
Gets a player whose name matches the given name closest.static Player
Gets the player with the given UUID.OfflinePlayer.getPlayer()
Gets aPlayer
object that this represents, if there is oneGets a player whose name matches the given name closest.Gets the player with the given UUID.static Player
Bukkit.getPlayerExact
(String name) Gets the player with the exact given name, case insensitive.Server.getPlayerExact
(String name) Gets the player with the exact given name, case insensitive.Modifier and TypeMethodDescriptionstatic Collection
<? extends Player> Bukkit.getOnlinePlayers()
Gets a view of all currently logged in players.Collection
<? extends Player> Server.getOnlinePlayers()
Gets a view of all currently logged in players.World.getPlayers()
Get a list of all players in this WorldChunk.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
(Chunk chunk) Get a list of all players who are can view the specified chunk from their clientBukkit.matchPlayer
(String name) Attempts to match any players with the given name, and returns a list of all possibly matches.Server.matchPlayer
(String name) Attempts to match any players with the given name, and returns a list of all possibly matches.Modifier and TypeMethodDescriptionstatic ItemStack
Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.static ItemCraftResult
Bukkit.craftItemResult
(ItemStack[] craftingMatrix, World world, Player player) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(ItemStack[] craftingMatrix, World world, Player player) Get the crafted item using the list ofItemStack
provided. -
Uses of Player in org.bukkit.block
Modifier and TypeMethodDescriptionSign.getAllowedEditor()
Gets the player that is currently allowed to edit this sign.Modifier and TypeMethodDescriptionTrialSpawner.getTrackedPlayers()
Gets the players this spawner is currently tracking.Modifier and TypeMethodDescriptionfloat
Block.getBreakSpeed
(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.Sign.getTargetSide
(Player player) Gets the side of this sign the given player is currently standing on.boolean
TrialSpawner.isTrackingPlayer
(Player player) Checks if this spawner is currently tracking the provided player.void
TrialSpawner.startTrackingPlayer
(Player player) Force this spawner to start tracking the provided player.void
TrialSpawner.stopTrackingPlayer
(Player player) Force this spawner to stop tracking the provided player.void
Simulates a player causing a vibration. -
Uses of Player in org.bukkit.boss
Modifier and TypeMethodDescriptionvoid
Adds the player to this boss bar causing it to display on their screen.void
BossBar.removePlayer
(Player player) Removes the player from this boss bar causing it to be removed from their screen. -
Uses of Player in org.bukkit.conversations
Modifier and TypeMethodDescriptionprotected abstract Prompt
PlayerNamePrompt.acceptValidatedInput
(ConversationContext context, Player input) Override this method to perform some action with the user's player name response. -
Uses of Player in org.bukkit.entity
Modifier and TypeMethodDescriptionLightningStrike.getCausingPlayer()
Get thePlayer
that caused this lightning to strike.LivingEntity.getKiller()
Gets the player identified as the killer of the living entity.Modifier and TypeMethodDescriptionPlayer.Spigot.getHiddenPlayers()
Gets all players hidden withhidePlayer(org.bukkit.entity.Player)
.Entity.getTrackedBy()
Get all players that are currently tracking this entity.Modifier and TypeMethodDescriptionboolean
Checks to see if a player has been hidden from this playervoid
Player.hidePlayer
(Player player) Deprecated.void
Player.hidePlayer
(Plugin plugin, Player player) Hides a player from this playervoid
LightningStrike.setCausingPlayer
(Player player) Set thePlayer
that caused this lightning to strike.void
Player.showPlayer
(Player player) Deprecated.void
Player.showPlayer
(Plugin plugin, Player player) Allows this player to see a player that was previously hidden. -
Uses of Player in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockBreakEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.BlockCanBuildEvent.getPlayer()
Gets the player who placed the block involved in this event.BlockDamageAbortEvent.getPlayer()
Gets the player that stopped damaging the block involved in this event.BlockDamageEvent.getPlayer()
Gets the player damaging the block involved in this event.BlockDispenseLootEvent.getPlayer()
Gets the player associated with this event.BlockDropItemEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.BlockFertilizeEvent.getPlayer()
Gets the player that triggered the fertilization.BlockIgniteEvent.getPlayer()
Gets the player who ignited this blockBlockPlaceEvent.getPlayer()
Gets the player who placed the block involved in this event.SignChangeEvent.getPlayer()
Gets the player changing the sign involved in this event.ModifierConstructorDescriptionBlockBreakEvent
(Block theBlock, Player player) BlockCanBuildEvent
(Block block, Player player, BlockData type, boolean canBuild) BlockDamageAbortEvent
(Player player, Block block, ItemStack itemInHand) BlockDamageEvent
(Player player, Block block, ItemStack itemInHand, boolean instaBreak) BlockDispenseLootEvent
(Player player, Block theBlock, List<ItemStack> dispensedLoot) BlockDropItemEvent
(Block block, BlockState blockState, Player player, List<Item> items) BlockFertilizeEvent
(Block theBlock, Player player, List<BlockState> blocks) BlockMultiPlaceEvent
(List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild) BlockPlaceEvent
(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild) Deprecated.BlockPlaceEvent
(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand) SignChangeEvent
(Block theBlock, Player thePlayer, String[] theLines) Deprecated.SignChangeEvent
(Block theBlock, Player thePlayer, String[] theLines, Side side) -
Uses of Player in org.bukkit.event.enchantment
Modifier and TypeMethodDescriptionEnchantItemEvent.getEnchanter()
Gets the player enchanting the itemPrepareItemEnchantEvent.getEnchanter()
Gets the player enchanting the itemModifierConstructorDescriptionEnchantItemEvent
(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment, Integer> enchants, Enchantment enchantmentHint, int levelHint, int i) PrepareItemEnchantEvent
(Player enchanter, EnchantmentView view, Block table, ItemStack item, EnchantmentOffer[] offers, int bonus) -
Uses of Player in org.bukkit.event.entity
Modifier and TypeMethodDescriptionPlayerDeathEvent.getEntity()
EntityPlaceEvent.getPlayer()
Returns the player placing the entityfinal Player
PlayerLeashEntityEvent.getPlayer()
Returns the player involved in this eventSheepDyeWoolEvent.getPlayer()
Returns the player dyeing the sheep, if available.ModifierConstructorDescriptionEntityPlaceEvent
(Entity entity, Player player, Block block, BlockFace blockFace) Deprecated.EntityPlaceEvent
(Entity entity, Player player, Block block, BlockFace blockFace, EquipmentSlot hand) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage) PlayerDeathEvent
(Player player, DamageSource damageSource, List<ItemStack> drops, int droppedExp, String deathMessage) PlayerLeashEntityEvent
(Entity what, Entity leashHolder, Player leasher) Deprecated.PlayerLeashEntityEvent
(Entity what, Entity leashHolder, Player leasher, EquipmentSlot hand) SheepDyeWoolEvent
(Sheep sheep, DyeColor color, Player player) -
Uses of Player in org.bukkit.event.hanging
Modifier and TypeMethodDescriptionHangingPlaceEvent.getPlayer()
Returns the player placing the hanging entityModifierConstructorDescriptionHangingPlaceEvent
(Hanging hanging, Player player, Block block, BlockFace blockFace, EquipmentSlot hand) Deprecated.HangingPlaceEvent
(Hanging hanging, Player player, Block block, BlockFace blockFace, EquipmentSlot hand, ItemStack itemStack) -
Uses of Player in org.bukkit.event.inventory
Modifier and TypeMethodDescriptionFurnaceExtractEvent.getPlayer()
Get the player that triggered the eventModifierConstructorDescriptionFurnaceExtractEvent
(Player player, Block block, Material itemType, int itemAmount, int exp) -
Uses of Player in org.bukkit.event.player
Modifier and TypeMethodDescriptionfinal Player
PlayerEvent.getPlayer()
Returns the player involved in this eventPlayerUnleashEntityEvent.getPlayer()
Returns the player who is unleashing the entity.Modifier and TypeMethodDescriptionAsyncPlayerChatEvent.getRecipients()
Gets a set of recipients that this chat message will be displayed to.PlayerChatEvent.getRecipients()
Deprecated.Gets a set of recipients that this chat message will be displayed toPlayerCommandPreprocessEvent.getRecipients()
Deprecated.This method is provided for backward compatibility with no guarantee to the effect of viewing or modifying the set.Modifier and TypeMethodDescriptionvoid
Deprecated.Sets the player that this message will display as, or command will be executed asvoid
Sets the player that this command will be executed as.ModifierConstructorDescriptionAsyncPlayerChatEvent
(boolean async, Player who, String message, Set<Player> players) AsyncPlayerChatPreviewEvent
(boolean async, Player who, String message, Set<Player> players) Deprecated.PlayerAdvancementDoneEvent
(Player who, Advancement advancement) PlayerAnimationEvent
(Player player) Deprecated.PlayerAnimationEvent
(Player player, PlayerAnimationType playerAnimationType) Construct a new PlayerAnimation eventPlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot) Deprecated.PlayerArmorStandManipulateEvent
(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot, EquipmentSlot hand) PlayerBedEnterEvent
(Player who, Block bed) Deprecated.PlayerBedEnterEvent
(Player who, Block bed, PlayerBedEnterEvent.BedEnterResult bedEnterResult) PlayerBedLeaveEvent
(Player who, Block bed, boolean setBedSpawn) PlayerBucketEmptyEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketEmptyEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketEmptyEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketEntityEvent
(Player player, Entity entity, ItemStack originalBucket, ItemStack entityBucket, EquipmentSlot hand) PlayerBucketEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketFillEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketFillEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) Deprecated.PlayerBucketFillEvent
(Player who, Block block, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand, EquipmentSlot hand) PlayerBucketFishEvent
(Player player, Fish fish, ItemStack waterBucket, ItemStack fishBucket, EquipmentSlot hand) Deprecated.PlayerChangedMainHandEvent
(Player who, MainHand mainHand) PlayerChangedWorldEvent
(Player player, World from) PlayerChannelEvent
(Player player, String channel) PlayerChatEvent
(Player player, String message) Deprecated.Deprecated.PlayerChatTabCompleteEvent
(Player who, String message, Collection<String> completions) Deprecated.PlayerCommandPreprocessEvent
(Player player, String message) PlayerCommandPreprocessEvent
(Player player, String message, Set<Player> recipients) PlayerCommandSendEvent
(Player player, Collection<String> commands) PlayerDropItemEvent
(Player player, Item drop) PlayerEditBookEvent
(Player who, int slot, BookMeta previousBookMeta, BookMeta newBookMeta, boolean isSigning) PlayerEggThrowEvent
(Player player, Egg egg, boolean hatching, byte numHatches, EntityType hatchingType) PlayerEvent
(Player who) PlayerExpChangeEvent
(Player player, int expAmount) PlayerExpCooldownChangeEvent
(Player player, int newcooldown, PlayerExpCooldownChangeEvent.ChangeReason reason) PlayerFishEvent
(Player player, Entity entity, FishHook hookEntity, PlayerFishEvent.State state) PlayerFishEvent
(Player player, Entity entity, FishHook hookEntity, EquipmentSlot hand, PlayerFishEvent.State state) PlayerGameModeChangeEvent
(Player player, GameMode newGameMode) PlayerHarvestBlockEvent
(Player player, Block harvestedBlock, List<ItemStack> itemsHarvested) Deprecated.PlayerHarvestBlockEvent
(Player player, Block harvestedBlock, EquipmentSlot hand, List<ItemStack> itemsHarvested) PlayerHideEntityEvent
(Player who, Entity entity) PlayerInteractAtEntityEvent
(Player who, Entity clickedEntity, Vector position) PlayerInteractAtEntityEvent
(Player who, Entity clickedEntity, Vector position, EquipmentSlot hand) PlayerInteractEntityEvent
(Player who, Entity clickedEntity) PlayerInteractEntityEvent
(Player who, Entity clickedEntity, EquipmentSlot hand) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand, Vector clickedPosition) PlayerItemBreakEvent
(Player player, ItemStack brokenItem) PlayerItemConsumeEvent
(Player player, ItemStack item) Deprecated.PlayerItemConsumeEvent
(Player player, ItemStack item, EquipmentSlot hand) PlayerItemDamageEvent
(Player player, ItemStack what, int damage) PlayerItemHeldEvent
(Player player, int previous, int current) PlayerItemMendEvent
(Player who, ItemStack item, ExperienceOrb experienceOrb, int repairAmount) Deprecated.PlayerItemMendEvent
(Player who, ItemStack item, EquipmentSlot slot, ExperienceOrb experienceOrb, int repairAmount) PlayerJoinEvent
(Player playerJoined, String joinMessage) PlayerKickEvent
(Player playerKicked, String kickReason, String leaveMessage) PlayerLevelChangeEvent
(Player player, int oldLevel, int newLevel) PlayerLinksSendEvent
(Player player, ServerLinks links) PlayerLocaleChangeEvent
(Player who, String locale) PlayerLoginEvent
(Player player, String hostname, InetAddress address) This constructor defaults message to an empty string, and result to ALLOWEDPlayerLoginEvent
(Player player, String hostname, InetAddress address, InetAddress realAddress) This constructor defaults message to an empty string, and result to ALLOWEDPlayerLoginEvent
(Player player, String hostname, InetAddress address, PlayerLoginEvent.Result result, String message, InetAddress realAddress) This constructor pre-configures the event with a result and messagePlayerMoveEvent
(Player player, Location from, Location to) PlayerPickupArrowEvent
(Player player, Item item, AbstractArrow arrow) PlayerPickupItemEvent
(Player player, Item item, int remaining) Deprecated.PlayerPortalEvent
(Player player, Location from, Location to) PlayerPortalEvent
(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause) PlayerPortalEvent
(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius) PlayerQuitEvent
(Player who, String quitMessage) PlayerRecipeBookClickEvent
(Player player, Recipe recipe, boolean shiftClick) PlayerRecipeBookSettingsChangeEvent
(Player player, PlayerRecipeBookSettingsChangeEvent.RecipeBookType recipeBookType, boolean open, boolean filtering) PlayerRecipeDiscoverEvent
(Player who, NamespacedKey recipe) PlayerRegisterChannelEvent
(Player player, String channel) PlayerResourcePackStatusEvent
(Player who, UUID id, PlayerResourcePackStatusEvent.Status resourcePackStatus) PlayerRespawnEvent
(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn) Deprecated.PlayerRespawnEvent
(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn) Deprecated.PlayerRespawnEvent
(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn, PlayerRespawnEvent.RespawnReason respawnReason) PlayerRiptideEvent
(Player who, ItemStack item) Deprecated.PlayerRiptideEvent
(Player who, ItemStack item, Vector velocity) PlayerShearEntityEvent
(Player who, Entity what) Deprecated.PlayerShearEntityEvent
(Player who, Entity what, ItemStack item, EquipmentSlot hand) PlayerShowEntityEvent
(Player who, Entity entity) PlayerSignOpenEvent
(Player player, Sign sign, Side side, PlayerSignOpenEvent.Cause cause) PlayerSpawnChangeEvent
(Player player, Location newSpawn, boolean forced, PlayerSpawnChangeEvent.Cause cause) PlayerStatisticIncrementEvent
(Player player, Statistic statistic, int initialValue, int newValue) PlayerStatisticIncrementEvent
(Player player, Statistic statistic, int initialValue, int newValue, EntityType entityType) PlayerStatisticIncrementEvent
(Player player, Statistic statistic, int initialValue, int newValue, Material material) PlayerSwapHandItemsEvent
(Player player, ItemStack mainHandItem, ItemStack offHandItem) PlayerTakeLecternBookEvent
(Player who, Lectern lectern) PlayerTeleportEvent
(Player player, Location from, Location to) PlayerTeleportEvent
(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause) PlayerToggleFlightEvent
(Player player, boolean isFlying) PlayerToggleSneakEvent
(Player player, boolean isSneaking) PlayerToggleSprintEvent
(Player player, boolean isSprinting) PlayerUnleashEntityEvent
(Entity entity, Player player) Deprecated.PlayerUnleashEntityEvent
(Entity entity, Player player, EquipmentSlot hand) PlayerUnregisterChannelEvent
(Player player, String channel) PlayerVelocityEvent
(Player player, Vector velocity) ModifierConstructorDescriptionAsyncPlayerChatEvent
(boolean async, Player who, String message, Set<Player> players) AsyncPlayerChatPreviewEvent
(boolean async, Player who, String message, Set<Player> players) Deprecated.Deprecated.PlayerCommandPreprocessEvent
(Player player, String message, Set<Player> recipients) -
Uses of Player in org.bukkit.event.raid
Modifier and TypeMethodDescriptionRaidTriggerEvent.getPlayer()
Returns the player who triggered the raid.Modifier and TypeMethodDescriptionRaidFinishEvent.getWinners()
Returns an immutable list contains all winners. -
Uses of Player in org.bukkit.event.server
-
Uses of Player in org.bukkit.event.world
Modifier and TypeMethodDescriptionStructureGrowEvent.getPlayer()
Gets the player that created the structure.ModifierConstructorDescriptionStructureGrowEvent
(Location location, TreeType species, boolean bonemeal, Player player, List<BlockState> blocks) -
Uses of Player in org.bukkit.map
-
Uses of Player in org.bukkit.plugin.messaging
Modifier and TypeMethodDescriptionvoid
Messenger.dispatchIncomingMessage
(Player source, String channel, byte[] message) Dispatches the specified incoming message to any registered listeners.void
StandardMessenger.dispatchIncomingMessage
(Player source, String channel, byte[] message) void
PluginMessageListener.onPluginMessageReceived
(String channel, Player player, byte[] message) A method that will be thrown when a PluginMessageSource sends a plugin message on a registered channel. -
Uses of Player in org.spigotmc.event.player
hidePlayer(Plugin, Player)