Uses of Interface
org.bukkit.entity.Player
-
Packages that use 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 aworld, including all players, monsters, projectiles, etc.org.bukkit.event.block org.bukkit.event.enchantment Eventstriggered from anenchantment table.org.bukkit.event.entity org.bukkit.event.hanging Eventsrelating toentities that hang.org.bukkit.event.inventory org.bukkit.event.player org.bukkit.event.raid Eventsrelated to raids.org.bukkit.event.server Eventsrelating to programmatic state changes on the server.org.bukkit.event.world org.bukkit.map Classes to facilitate plugin handling ofmapdisplays.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 @Nullable PlayerBukkit. getPlayer(@NotNull String name)Gets a player object by the given username.static @Nullable PlayerBukkit. getPlayer(@NotNull UUID id)Gets the player with the given UUID.@Nullable PlayerOfflinePlayer. getPlayer()Gets aPlayerobject that this represents, if there is one@Nullable PlayerServer. getPlayer(@NotNull String name)Gets a player object by the given username.@Nullable PlayerServer. getPlayer(@NotNull UUID id)Gets the player with the given UUID.static @Nullable PlayerBukkit. getPlayerExact(@NotNull String name)Gets the player with the exact given name, case insensitive.@Nullable PlayerServer. getPlayerExact(@NotNull 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 @NotNull Collection<? extends Player>Bukkit. getOnlinePlayers()Gets a view of all currently logged in players.@NotNull Collection<? extends Player>Server. getOnlinePlayers()Gets a view of all currently logged in players.@NotNull List<Player>World. getPlayers()Get a list of all players in this Worldstatic @NotNull List<Player>Bukkit. matchPlayer(@NotNull String name)Attempts to match any players with the given name, and returns a list of all possibly matches.@NotNull List<Player>Server. matchPlayer(@NotNull 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 @NotNull 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 voidBossBar. addPlayer(@NotNull Player player)Adds the player to this boss bar causing it to display on their screen.voidBossBar. removePlayer(@NotNull 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 @Nullable PromptPlayerNamePrompt. acceptValidatedInput(@NotNull ConversationContext context, @NotNull 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 @Nullable PlayerLivingEntity. 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 booleanPlayer. canSee(@NotNull Player player)Checks to see if a player has been hidden from this playervoidPlayer. hidePlayer(@NotNull Player player)Deprecated.voidPlayer. hidePlayer(@NotNull Plugin plugin, @NotNull Player player)Hides a player from this playervoidPlayer. showPlayer(@NotNull Player player)Deprecated.voidPlayer. showPlayer(@NotNull Plugin plugin, @NotNull 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 PlayerBlockPlaceEvent. playerMethods in org.bukkit.event.block that return Player Modifier and Type Method Description @NotNull PlayerBlockBreakEvent. getPlayer()Gets the Player that is breaking the block involved in this event.@Nullable PlayerBlockCanBuildEvent. getPlayer()Gets the player who placed the block involved in this event.@NotNull PlayerBlockDamageEvent. getPlayer()Gets the player damaging the block involved in this event.@NotNull PlayerBlockDropItemEvent. getPlayer()Gets the Player that is breaking the block involved in this event.@Nullable PlayerBlockFertilizeEvent. getPlayer()Gets the player that triggered the fertilization.@Nullable PlayerBlockIgniteEvent. getPlayer()Gets the player who ignited this block@NotNull PlayerBlockPlaceEvent. getPlayer()Gets the player who placed the block involved in this event.@NotNull PlayerSignChangeEvent. getPlayer()Gets the player changing the sign involved in this event. -
Uses of Player in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return Player Modifier and Type Method Description @NotNull PlayerEnchantItemEvent. getEnchanter()Gets the player enchanting the item@NotNull PlayerPrepareItemEnchantEvent. getEnchanter()Gets the player enchanting the itemConstructors in org.bukkit.event.enchantment with parameters of type Player Constructor Description EnchantItemEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment,Integer> enchants, int i)PrepareItemEnchantEvent(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull 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 @NotNull PlayerPlayerDeathEvent. getEntity()@Nullable PlayerEntityPlaceEvent. getPlayer()Deprecated.Returns the player placing the entity@NotNull PlayerPlayerLeashEntityEvent. getPlayer()Returns the player involved in this eventConstructors in org.bukkit.event.entity with parameters of type Player Constructor Description EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)Deprecated.PlayerDeathEvent(@NotNull Player player, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable String deathMessage)PlayerDeathEvent(@NotNull Player player, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable String deathMessage)PlayerDeathEvent(@NotNull Player player, @NotNull List<ItemStack> drops, int droppedExp, @Nullable String deathMessage)PlayerLeashEntityEvent(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher) -
Uses of Player in org.bukkit.event.hanging
Methods in org.bukkit.event.hanging that return Player Modifier and Type Method Description @Nullable PlayerHangingPlaceEvent. getPlayer()Returns the player placing the hanging entityConstructors in org.bukkit.event.hanging with parameters of type Player Constructor Description HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace) -
Uses of Player in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return Player Modifier and Type Method Description @NotNull PlayerFurnaceExtractEvent. getPlayer()Get the player that triggered the eventConstructors in org.bukkit.event.inventory with parameters of type Player Constructor Description FurnaceExtractEvent(@NotNull Player player, @NotNull Block block, @NotNull 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 PlayerPlayerEvent. playerMethods in org.bukkit.event.player that return Player Modifier and Type Method Description @NotNull PlayerPlayerEvent. getPlayer()Returns the player involved in this event@NotNull PlayerPlayerUnleashEntityEvent. 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 @NotNull Set<Player>AsyncPlayerChatEvent. getRecipients()Gets a set of recipients that this chat message will be displayed to.@NotNull Set<Player>PlayerChatEvent. getRecipients()Deprecated.Gets a set of recipients that this chat message will be displayed to@NotNull Set<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 voidPlayerChatEvent. setPlayer(@NotNull Player player)Deprecated.Sets the player that this message will display as, or command will be executed asvoidPlayerCommandPreprocessEvent. setPlayer(@NotNull 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, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players)PlayerChatEvent(@NotNull Player player, @NotNull String message, @NotNull String format, @NotNull Set<Player> recipients)Deprecated.PlayerCommandPreprocessEvent(@NotNull Player player, @NotNull String message, @NotNull 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 @NotNull PlayerRaidTriggerEvent. 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 @NotNull 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(@NotNull Raid raid, @NotNull World world, @NotNull Player player)Constructor parameters in org.bukkit.event.raid with type arguments of type Player Constructor Description RaidFinishEvent(@NotNull Raid raid, @NotNull World world, @NotNull 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 @NotNull 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 @Nullable PlayerStructureGrowEvent. getPlayer()Gets the player that created the structure.Constructors in org.bukkit.event.world with parameters of type Player Constructor Description StructureGrowEvent(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks) -
Uses of Player in org.bukkit.map
Methods in org.bukkit.map with parameters of type Player Modifier and Type Method Description abstract voidMapRenderer. render(@NotNull MapView map, @NotNull MapCanvas canvas, @NotNull Player player)Render to the given 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 voidMessenger. dispatchIncomingMessage(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message)Dispatches the specified incoming message to any registered listeners.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)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(@NotNull Player who, @NotNull Location spawnLocation)
-