Uses of Interface
org.bukkit.entity.Player
Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.boss |
Classes concerning the creation of boss bars that appear at the top of the
player's screen.
|
org.bukkit.conversations |
Classes dedicated to facilitate direct player-to-plugin communication.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.block | |
org.bukkit.event.enchantment |
Events triggered from an enchantment table . |
org.bukkit.event.entity | |
org.bukkit.event.hanging |
Events relating to entities that hang . |
org.bukkit.event.inventory | |
org.bukkit.event.player | |
org.bukkit.event.raid |
Events related to raids. |
org.bukkit.event.server |
Events relating to programmatic state
changes on the server. |
org.bukkit.event.world | |
org.bukkit.map |
Classes to facilitate plugin handling of
map displays. |
org.bukkit.plugin.messaging |
Classes dedicated to specialized plugin to client protocols.
|
org.spigotmc.event.player |
Spigot-specific player events.
|
-
Uses of Player in org.bukkit
Methods in org.bukkit that return Player Modifier and Type Method Description static Player
Bukkit. getPlayer(String name)
Gets a player object by the given username.static Player
Bukkit. getPlayer(UUID id)
Gets the player with the given UUID.Player
OfflinePlayer. getPlayer()
Gets aPlayer
object that this represents, if there is onePlayer
Server. getPlayer(String name)
Gets a player object by the given username.Player
Server. getPlayer(UUID id)
Gets the player with the given UUID.static Player
Bukkit. getPlayerExact(String name)
Gets the player with the exact given name, case insensitive.Player
Server. getPlayerExact(String name)
Gets the player with the exact given name, case insensitive.Methods in org.bukkit that return types with arguments of type Player Modifier and Type Method Description static 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.List<Player>
World. getPlayers()
Get a list of all players in this Worldstatic List<Player>
Bukkit. matchPlayer(String name)
Attempts to match any players with the given name, and returns a list of all possibly matches.List<Player>
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.boss
Methods in org.bukkit.boss that return types with arguments of type Player Modifier and Type Method Description List<Player>
BossBar. getPlayers()
Returns all players viewing this boss barMethods in org.bukkit.boss with parameters of type Player Modifier and Type Method Description void
BossBar. addPlayer(Player player)
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
Methods in org.bukkit.conversations with parameters of type Player Modifier and Type Method Description protected 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
Methods in org.bukkit.entity that return Player Modifier and Type Method Description Player
LivingEntity. getKiller()
Gets the player identified as the killer of the living entity.Methods in org.bukkit.entity that return types with arguments of type Player Modifier and Type Method Description Set<Player>
Player.Spigot. getHiddenPlayers()
Gets all players hidden withhidePlayer(org.bukkit.entity.Player)
.Methods in org.bukkit.entity with parameters of type Player Modifier and Type Method Description boolean
Player. canSee(Player player)
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
Fields in org.bukkit.event.block declared as Player Modifier and Type Field Description protected Player
BlockPlaceEvent. player
Methods in org.bukkit.event.block that return Player Modifier and Type Method Description Player
BlockBreakEvent. getPlayer()
Gets the Player that is breaking the block involved in this event.Player
BlockCanBuildEvent. getPlayer()
Gets the player who placed the block involved in this event.Player
BlockDamageEvent. getPlayer()
Gets the player damaging the block involved in this event.Player
BlockDropItemEvent. getPlayer()
Gets the Player that is breaking the block involved in this event.Player
BlockFertilizeEvent. getPlayer()
Gets the player that triggered the fertilization.Player
BlockIgniteEvent. getPlayer()
Gets the player who ignited this blockPlayer
BlockPlaceEvent. getPlayer()
Gets the player who placed the block involved in this event.Player
SignChangeEvent. getPlayer()
Gets the player changing the sign involved in this event.Constructors in org.bukkit.event.block with parameters of type Player Constructor Description BlockBreakEvent(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
Methods in org.bukkit.event.enchantment that return Player Modifier and Type Method Description Player
EnchantItemEvent. getEnchanter()
Gets the player enchanting the itemPlayer
PrepareItemEnchantEvent. getEnchanter()
Gets the player enchanting the itemConstructors in org.bukkit.event.enchantment with parameters of type Player Constructor Description EnchantItemEvent(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
Methods in org.bukkit.event.entity that return Player Modifier and Type Method Description Player
PlayerDeathEvent. getEntity()
Player
EntityPlaceEvent. getPlayer()
Deprecated.Returns the player placing the entityPlayer
PlayerLeashEntityEvent. getPlayer()
Returns the player involved in this eventConstructors in org.bukkit.event.entity with parameters of type Player Constructor Description EntityPlaceEvent(Entity entity, Player player, Block block, BlockFace blockFace)
Deprecated.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)
-
Uses of Player in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return Player Modifier and Type Method Description Player
HangingPlaceEvent. getPlayer()
Returns the player placing the hanging entityConstructors in org.bukkit.event.hanging with parameters of type Player Constructor Description HangingPlaceEvent(Hanging hanging, Player player, Block block, BlockFace blockFace)
-
Uses of Player in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return Player Modifier and Type Method Description Player
FurnaceExtractEvent. getPlayer()
Get the player that triggered the eventConstructors in org.bukkit.event.inventory with parameters of type Player Constructor Description FurnaceExtractEvent(Player player, Block block, Material itemType, int itemAmount, int exp)
-
Uses of Player in org.bukkit.event.player
Fields in org.bukkit.event.player declared as Player Modifier and Type Field Description protected Player
PlayerEvent. player
Methods in org.bukkit.event.player that return Player Modifier and Type Method Description Player
PlayerEvent. getPlayer()
Returns the player involved in this eventPlayer
PlayerUnleashEntityEvent. getPlayer()
Returns the player who is unleashing the entity.Methods in org.bukkit.event.player that return types with arguments of type Player Modifier and Type Method Description Set<Player>
AsyncPlayerChatEvent. getRecipients()
Gets a set of recipients that this chat message will be displayed to.Set<Player>
PlayerChatEvent. getRecipients()
Deprecated.Gets a set of recipients that this chat message will be displayed toSet<Player>
PlayerCommandPreprocessEvent. getRecipients()
Deprecated.This method is provided for backward compatibility with no guarantee to the effect of viewing or modifying the set.Methods in org.bukkit.event.player with parameters of type Player Modifier and Type Method Description void
PlayerChatEvent. setPlayer(Player player)
Deprecated.Sets the player that this message will display as, or command will be executed asvoid
PlayerCommandPreprocessEvent. setPlayer(Player player)
Sets the player that this command will be executed as.Constructor parameters in org.bukkit.event.player with type arguments of type Player Constructor Description AsyncPlayerChatEvent(boolean async, Player who, String message, Set<Player> players)
PlayerChatEvent(Player player, String message, String format, Set<Player> recipients)
Deprecated.PlayerCommandPreprocessEvent(Player player, String message, Set<Player> recipients)
-
Uses of Player in org.bukkit.event.raid
Methods in org.bukkit.event.raid that return Player Modifier and Type Method Description Player
RaidTriggerEvent. getPlayer()
Returns the player who triggered the raid.Methods in org.bukkit.event.raid that return types with arguments of type Player Modifier and Type Method Description List<Player>
RaidFinishEvent. getWinners()
Returns an immutable list contains all winners.Constructors in org.bukkit.event.raid with parameters of type Player Constructor Description RaidTriggerEvent(Raid raid, World world, Player player)
Constructor parameters in org.bukkit.event.raid with type arguments of type Player Constructor Description RaidFinishEvent(Raid raid, World world, List<Player> winners)
-
Uses of Player in org.bukkit.event.server
Methods in org.bukkit.event.server that return types with arguments of type Player Modifier and Type Method Description Iterator<Player>
ServerListPingEvent. iterator()
-
Uses of Player in org.bukkit.event.world
Methods in org.bukkit.event.world that return Player Modifier and Type Method Description Player
StructureGrowEvent. getPlayer()
Gets the player that created the structure.Constructors in org.bukkit.event.world with parameters of type Player Constructor Description StructureGrowEvent(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
Methods in org.bukkit.plugin.messaging with parameters of type Player Modifier and Type Method Description void
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
Constructors in org.spigotmc.event.player with parameters of type Player Constructor Description PlayerSpawnLocationEvent(Player who, Location spawnLocation)