| Modifier and Type | Method | Description | 
|---|---|---|
| Player | ParticleBuilder. source() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<Player> | ParticleBuilder. receivers() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| ParticleBuilder | ParticleBuilder. receivers(Player... receivers) | |
| ParticleBuilder | ParticleBuilder. source(Player source) | Sets the source of this particle for visibility concerns (Vanish API) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| ParticleBuilder | ParticleBuilder. receivers(Collection<Player> receivers) | |
| ParticleBuilder | ParticleBuilder. receivers(List<Player> receivers) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | BeaconEffectEvent. getPlayer() | Gets the player who the potion effect is being applied to. | 
| Constructor | Description | 
|---|---|
| BeaconEffectEvent(Block block,
                 PotionEffect effect,
                 Player player,
                 boolean primary) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | EndermanAttackPlayerEvent. getPlayer() | The player the Enderman is considering attacking | 
| Constructor | Description | 
|---|---|
| EndermanAttackPlayerEvent(Enderman entity,
                         Player player) | |
| PlayerNaturallySpawnCreaturesEvent(Player player,
                                  byte radius) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static void | IllegalPacketEvent. process(Player player,
       String type,
       String kickMessage,
       Exception exception) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected Player | PaperServerListPingEvent. getBukkitPlayer(Object player) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Iterator<Player> | PaperServerListPingEvent. iterator() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | ServerPluginMessageException. getPlayer() | Gets the player which the plugin message causing the exception originated from | 
| Constructor | Description | 
|---|---|
| ServerPluginMessageException(String message,
                            Throwable cause,
                            boolean enableSuppression,
                            boolean writableStackTrace,
                            Plugin responsiblePlugin,
                            Player player,
                            String channel,
                            byte[] data) | |
| ServerPluginMessageException(String message,
                            Throwable cause,
                            Plugin responsiblePlugin,
                            Player player,
                            String channel,
                            byte[] data) | |
| ServerPluginMessageException(Throwable cause,
                            Plugin responsiblePlugin,
                            Player player,
                            String channel,
                            byte[] data) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| default Long | LootableInventory. getLastLooted(Player player) | Gets the timestamp, in milliseconds, of when the player last looted this object | 
| default boolean | LootableInventory. hasPlayerLooted(Player player) | Has this player ever looted this block | 
| default boolean | LootableInventory. setHasPlayerLooted(Player player,
                  boolean looted) | Change the state of whether or not a player has looted this block | 
| Constructor | Description | 
|---|---|
| LootableInventoryReplenishEvent(Player player,
                               LootableInventory inventory) | 
| 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 a  Playerobject that this represents, if there is one | 
| Player | 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. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Collection<Player> | Location. getNearbyPlayers(double radius) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double xzRadius,
                double yRadius) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double xRadius,
                double yRadius,
                double zRadius) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double xRadius,
                double yRadius,
                double zRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double xzRadius,
                double yRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double radius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double radius) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xzRadius,
                double yRadius) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xRadius,
                double yRadius,
                double zRadius) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xRadius,
                double yRadius,
                double zRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xzRadius,
                double yRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double radius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| 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 World | 
| static 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. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| default <T> void | World. spawnParticle(Particle particle,
             List<Player> receivers,
             Player source,
             double x,
             double y,
             double z,
             int count,
             double offsetX,
             double offsetY,
             double offsetZ,
             double extra,
             T data) | Spawns the particle (the number of times specified by count)
 at the target location. | 
| <T> void | World. spawnParticle(Particle particle,
             List<Player> receivers,
             Player source,
             double x,
             double y,
             double z,
             int count,
             double offsetX,
             double offsetY,
             double offsetZ,
             double extra,
             T data,
             boolean force) | Spawns the particle (the number of times specified by count)
 at the target location. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Collection<Player> | Location. getNearbyPlayers(double xRadius,
                double yRadius,
                double zRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double xzRadius,
                double yRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| Collection<Player> | Location. getNearbyPlayers(double radius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xRadius,
                double yRadius,
                double zRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double xzRadius,
                double yRadius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default Collection<Player> | World. getNearbyPlayers(Location loc,
                double radius,
                Predicate<Player> predicate) | Gets nearby players within the specified radius (bounding box) | 
| default <T> void | World. spawnParticle(Particle particle,
             List<Player> receivers,
             Player source,
             double x,
             double y,
             double z,
             int count,
             double offsetX,
             double offsetY,
             double offsetZ,
             double extra,
             T data) | Spawns the particle (the number of times specified by count)
 at the target location. | 
| <T> void | World. spawnParticle(Particle particle,
             List<Player> receivers,
             Player source,
             double x,
             double y,
             double z,
             int count,
             double offsetX,
             double offsetY,
             double offsetZ,
             double extra,
             T data,
             boolean force) | Spawns the particle (the number of times specified by count)
 at the target location. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<Player> | BossBar. getPlayers() | Returns all players viewing this boss bar | 
| 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. | 
| 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. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | LivingEntity. getKiller() | Gets the player identified as the killer of the living entity. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Set<Player> | Player.Spigot. getHiddenPlayers() | Gets all players hidden with  hidePlayer(org.bukkit.entity.Player). | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | Player. canSee(Player player) | Checks to see if a player has been hidden from this player | 
| void | Player. hidePlayer(Player player) | Deprecated.
 | 
| void | Player. hidePlayer(Plugin plugin,
          Player player) | Hides a player from this player | 
| void | LivingEntity. setKiller(Player killer) | Sets the player identified as the killer of the living entity. | 
| void | Player. showPlayer(Player player) | Deprecated.
 | 
| void | Player. showPlayer(Plugin plugin,
          Player player) | Allows this player to see a player that was previously hidden. | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected Player | BlockPlaceEvent. 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 block | 
| Player | 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. | 
| 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) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | EnchantItemEvent. getEnchanter() | Gets the player enchanting the item | 
| Player | PrepareItemEnchantEvent. getEnchanter() | Gets the player enchanting the item | 
| 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) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | PlayerDeathEvent. getEntity() | |
| Player | EntityPlaceEvent. getPlayer() | Deprecated. Returns the player placing the entity | 
| Player | PlayerLeashEntityEvent. getPlayer() | Returns the player involved in this event | 
| 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) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | HangingPlaceEvent. getPlayer() | Returns the player placing the hanging entity | 
| Constructor | Description | 
|---|---|
| HangingPlaceEvent(Hanging hanging,
                 Player player,
                 Block block,
                 BlockFace blockFace) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | FurnaceExtractEvent. getPlayer() | Get the player that triggered the event | 
| Constructor | Description | 
|---|---|
| FurnaceExtractEvent(Player player,
                   Block block,
                   Material itemType,
                   int itemAmount,
                   int exp) | 
| Modifier and Type | Field | Description | 
|---|---|---|
| protected Player | PlayerEvent. player | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | PlayerEvent. getPlayer() | Returns the player involved in this event | 
| Player | PlayerUnleashEntityEvent. getPlayer() | Returns the player who is unleashing the entity. | 
| 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 to | 
| Set<Player> | PlayerCommandPreprocessEvent. getRecipients() | Deprecated.
 This method is provided for backward compatibility with no
     guarantee to the effect of viewing or modifying the set. | 
| 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 as | 
| void | PlayerCommandPreprocessEvent. setPlayer(Player player) | Sets the player that this command will be executed as. | 
| 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) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | RaidTriggerEvent. getPlayer() | Returns the player who triggered the raid. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<Player> | RaidFinishEvent. getWinners() | Returns an immutable list contains all winners. | 
| Constructor | Description | 
|---|---|
| RaidTriggerEvent(Raid raid,
                World world,
                Player player) | 
| Constructor | Description | 
|---|---|
| RaidFinishEvent(Raid raid,
               World world,
               List<Player> winners) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Iterator<Player> | ServerListPingEvent. iterator() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Player | StructureGrowEvent. getPlayer() | Gets the player that created the structure. | 
| Constructor | Description | 
|---|---|
| StructureGrowEvent(Location location,
                  TreeType species,
                  boolean bonemeal,
                  Player player,
                  List<BlockState> blocks) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| abstract void | MapRenderer. render(MapView map,
      MapCanvas canvas,
      Player player) | Render to the given map. | 
| 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. | 
| Constructor | Description | 
|---|---|
| PlayerSpawnLocationEvent(Player who,
                        Location spawnLocation) | 
Copyright © 2020. All rights reserved.