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 object by the given username.static Player
Gets the player with the given UUID.OfflinePlayer.getPlayer()
Gets aPlayer
object that this represents, if there is oneGets a player object by the given username.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 WorldBukkit.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. -
Uses of Player in org.bukkit.block
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. -
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 TypeMethodDescriptionLivingEntity.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)
.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
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.BlockDamageEvent.getPlayer()
Gets the player damaging the block involved in 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)
BlockDamageEvent(Player player, Block block, ItemStack itemInHand, boolean instaBreak)
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)
-
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, int i)
PrepareItemEnchantEvent(Player enchanter, InventoryView 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 entityPlayerLeashEntityEvent.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)
PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage)
PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage)
PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, String deathMessage)
PlayerLeashEntityEvent(Entity what, Entity leashHolder, Player leasher)
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 entity -
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 TypeMethodDescriptionPlayerEvent.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)
PlayerAdvancementDoneEvent(Player who, Advancement advancement)
PlayerAnimationEvent(Player player)
Construct a new PlayerAnimation eventPlayerArmorStandManipulateEvent(Player who, ArmorStand clickedEntity, ItemStack playerItem, ItemStack armorStandItem, EquipmentSlot slot)
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)
PlayerBucketEntityEvent(Player player, Entity entity, ItemStack originalBucket, ItemStack entityBucket)
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)
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)
PlayerBucketFishEvent(Player player, Fish fish, ItemStack waterBucket, ItemStack fishBucket)
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)
PlayerFishEvent(Player player, Entity entity, FishHook hookEntity, PlayerFishEvent.State state)
PlayerGameModeChangeEvent(Player player, GameMode newGameMode)
PlayerHarvestBlockEvent(Player player, Block harvestedBlock, List<ItemStack> itemsHarvested)
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)
PlayerItemBreakEvent(Player player, ItemStack brokenItem)
PlayerItemConsumeEvent(Player player, ItemStack item)
PlayerItemDamageEvent(Player player, ItemStack what, int damage)
PlayerItemHeldEvent(Player player, int previous, int current)
PlayerItemMendEvent(Player who, ItemStack item, ExperienceOrb experienceOrb, int repairAmount)
PlayerJoinEvent(Player playerJoined, String joinMessage)
PlayerKickEvent(Player playerKicked, String kickReason, String leaveMessage)
PlayerLevelChangeEvent(Player player, int oldLevel, int newLevel)
PlayerLocaleChangeEvent(Player who, String locale)
PlayerLoginEvent(Player player, String hostname, InetAddress address)
PlayerLoginEvent(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)
PlayerRecipeDiscoverEvent(Player who, NamespacedKey recipe)
PlayerRegisterChannelEvent(Player player, String channel)
PlayerResourcePackStatusEvent(Player who, PlayerResourcePackStatusEvent.Status resourcePackStatus)
PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn)
Deprecated.PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn)
PlayerRiptideEvent(Player who, ItemStack item)
PlayerShearEntityEvent(Player who, Entity what)
Deprecated.PlayerShearEntityEvent(Player who, Entity what, ItemStack item, EquipmentSlot hand)
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)
PlayerUnregisterChannelEvent(Player player, String channel)
PlayerVelocityEvent(Player player, Vector velocity)
ModifierConstructorDescriptionAsyncPlayerChatEvent(boolean async, Player who, String message, Set<Player> players)
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)