|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Player | |
---|---|
org.bukkit | More generalized classes in the API. |
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 | Events relating to when a block is changed or interacts with the world . |
org.bukkit.event.enchantment | Events triggered from an enchantment table . |
org.bukkit.event.entity | Events relating to entities , excluding some directly referencing
some more specific entity types. |
org.bukkit.event.hanging | Events relating to entities that hang . |
org.bukkit.event.inventory | Events relating to inventory manipulation. |
org.bukkit.event.painting | Events relating to paintings , but deprecated for more general
hanging events. |
org.bukkit.event.player | Events relating to players . |
org.bukkit.event.world | Events triggered by various world states or changes. |
org.bukkit.map | Classes to facilitate plugin handling of map displays. |
org.bukkit.plugin.messaging | Classes dedicated to specialized plugin to client protocols. |
Uses of Player in org.bukkit |
---|
Methods in org.bukkit that return Player | |
---|---|
static Player[] |
Bukkit.getOnlinePlayers()
|
Player[] |
Server.getOnlinePlayers()
Gets a list of all currently logged in players |
Player |
OfflinePlayer.getPlayer()
Gets a Player object that this represents, if there is one
If the player is online, this will return that player. |
static Player |
Bukkit.getPlayer(String name)
|
Player |
Server.getPlayer(String name)
Gets a player object by the given username This method may not return objects for offline players |
static Player |
Bukkit.getPlayerExact(String name)
|
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 | |
---|---|
List<Player> |
World.getPlayers()
Get a list of all players in this World |
static List<Player> |
Bukkit.matchPlayer(String name)
|
List<Player> |
Server.matchPlayer(String name)
Attempts to match any players with the given name, and returns a list of all possibly matches This list is not sorted in any particular order. |
Uses of Player in org.bukkit.conversations |
---|
Methods in org.bukkit.conversations with parameters of type Player | |
---|---|
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 | |
---|---|
Player |
LivingEntity.getKiller()
Gets the player identified as the killer of this entity. |
Methods in org.bukkit.entity with parameters of type Player | |
---|---|
boolean |
Player.canSee(Player player)
Checks to see if a player has been hidden from this player |
void |
Player.hidePlayer(Player player)
Hides a player from this player |
void |
Player.showPlayer(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 | |
---|---|
protected Player |
BlockPlaceEvent.player
|
Methods in org.bukkit.event.block that return Player | |
---|---|
Player |
SignChangeEvent.getPlayer()
Gets the player changing the sign involved in this event. |
Player |
BlockBreakEvent.getPlayer()
Gets the Player that is breaking the block involved in this event. |
Player |
BlockDamageEvent.getPlayer()
Gets the player damaging the block involved in this event. |
Player |
BlockPlaceEvent.getPlayer()
Gets the player who placed the block involved in this event. |
Player |
BlockIgniteEvent.getPlayer()
Gets the player who ignited this block |
Constructors in org.bukkit.event.block with parameters of type Player | |
---|---|
BlockBreakEvent(Block theBlock,
Player player)
|
|
BlockDamageEvent(Player player,
Block block,
ItemStack itemInHand,
boolean instaBreak)
|
|
BlockIgniteEvent(Block theBlock,
BlockIgniteEvent.IgniteCause cause,
Player thePlayer)
Deprecated. |
|
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild)
|
|
SignChangeEvent(Block theBlock,
Player thePlayer,
String[] theLines)
|
Uses of Player in org.bukkit.event.enchantment |
---|
Methods in org.bukkit.event.enchantment that return Player | |
---|---|
Player |
EnchantItemEvent.getEnchanter()
Gets the player enchanting the item |
Player |
PrepareItemEnchantEvent.getEnchanter()
Gets the player enchanting the item |
Constructors in org.bukkit.event.enchantment with parameters of type Player | |
---|---|
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,
int[] levelsOffered,
int bonus)
|
Uses of Player in org.bukkit.event.entity |
---|
Methods in org.bukkit.event.entity that return Player | |
---|---|
Player |
PlayerDeathEvent.getEntity()
|
Constructors in org.bukkit.event.entity with parameters of type Player | |
---|---|
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)
|
Uses of Player in org.bukkit.event.hanging |
---|
Methods in org.bukkit.event.hanging that return Player | |
---|---|
Player |
HangingPlaceEvent.getPlayer()
Returns the player placing the hanging entity |
Constructors in org.bukkit.event.hanging with parameters of type Player | |
---|---|
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 | |
---|---|
Player |
FurnaceExtractEvent.getPlayer()
Get the player that triggered the event |
Constructors in org.bukkit.event.inventory with parameters of type Player | |
---|---|
FurnaceExtractEvent(Player player,
Block block,
Material itemType,
int itemAmount,
int exp)
|
Uses of Player in org.bukkit.event.painting |
---|
Methods in org.bukkit.event.painting that return Player | |
---|---|
Player |
PaintingPlaceEvent.getPlayer()
Deprecated. Returns the player placing the painting |
Constructors in org.bukkit.event.painting with parameters of type Player | |
---|---|
PaintingPlaceEvent(Painting painting,
Player player,
Block block,
BlockFace blockFace)
Deprecated. |
Uses of Player in org.bukkit.event.player |
---|
Fields in org.bukkit.event.player declared as Player | |
---|---|
protected Player |
PlayerEvent.player
|
Methods in org.bukkit.event.player that return Player | |
---|---|
Player |
PlayerEvent.getPlayer()
Returns the player involved in this event |
Methods in org.bukkit.event.player that return types with arguments of type Player | |
---|---|
Set<Player> |
PlayerCommandPreprocessEvent.getRecipients()
Deprecated. This method is provided for backward compatibility with no guarantee to the effect of viewing or modifying the set. |
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 |
Methods in org.bukkit.event.player with parameters of type Player | |
---|---|
void |
PlayerCommandPreprocessEvent.setPlayer(Player player)
Sets the player that this command will be executed as. |
void |
PlayerChatEvent.setPlayer(Player player)
Deprecated. Sets the player that this message will display as, or command will be executed as |
Constructors in org.bukkit.event.player with parameters of type Player | |
---|---|
AsyncPlayerChatEvent(boolean async,
Player who,
String message,
Set<Player> players)
|
|
PlayerAnimationEvent(Player player)
Construct a new PlayerAnimation event |
|
PlayerBedEnterEvent(Player who,
Block bed)
|
|
PlayerBedLeaveEvent(Player who,
Block bed)
|
|
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
|
|
PlayerBucketEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
|
|
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
Material bucket,
ItemStack itemInHand)
|
|
PlayerChangedWorldEvent(Player player,
World from)
|
|
PlayerChannelEvent(Player player,
String channel)
|
|
PlayerChatEvent(Player player,
String message)
Deprecated. |
|
PlayerChatEvent(Player player,
String message,
String format,
Set<Player> recipients)
Deprecated. |
|
PlayerChatTabCompleteEvent(Player who,
String message,
Collection<String> completions)
|
|
PlayerCommandPreprocessEvent(Player player,
String message)
|
|
PlayerCommandPreprocessEvent(Player player,
String message,
Set<Player> recipients)
|
|
PlayerDropItemEvent(Player player,
Item drop)
|
|
PlayerEggThrowEvent(Player player,
Egg egg,
boolean hatching,
byte numHatches,
CreatureType hatchingType)
Deprecated. |
|
PlayerEggThrowEvent(Player player,
Egg egg,
boolean hatching,
byte numHatches,
EntityType hatchingType)
|
|
PlayerEvent(Player who)
|
|
PlayerExpChangeEvent(Player player,
int expAmount)
|
|
PlayerFishEvent(Player player,
Entity entity,
PlayerFishEvent.State state)
|
|
PlayerGameModeChangeEvent(Player player,
GameMode newGameMode)
|
|
PlayerInteractEntityEvent(Player who,
Entity clickedEntity)
|
|
PlayerInteractEvent(Player who,
Action action,
ItemStack item,
Block clickedBlock,
BlockFace clickedFace)
|
|
PlayerInventoryEvent(Player player,
Inventory inventory)
Deprecated. |
|
PlayerItemBreakEvent(Player player,
ItemStack brokenItem)
|
|
PlayerItemConsumeEvent(Player player,
ItemStack item)
|
|
PlayerItemHeldEvent(Player player,
int previous,
int current)
|
|
PlayerJoinEvent(Player playerJoined,
String joinMessage)
|
|
PlayerKickEvent(Player playerKicked,
String kickReason,
String leaveMessage)
|
|
PlayerLevelChangeEvent(Player player,
int oldLevel,
int newLevel)
|
|
PlayerLoginEvent(Player player)
Deprecated. Address should be provided in other constructor |
|
PlayerLoginEvent(Player player,
PlayerLoginEvent.Result result,
String message)
Deprecated. Address and hostname should be provided in other constructor |
|
PlayerLoginEvent(Player player,
String hostname)
Deprecated. Address should be provided in other constructor |
|
PlayerLoginEvent(Player player,
String hostname,
InetAddress address)
This constructor defaults message to an empty string, and result to ALLOWED |
|
PlayerLoginEvent(Player player,
String hostname,
InetAddress address,
PlayerLoginEvent.Result result,
String message)
This constructor pre-configures the event with a result and message |
|
PlayerMoveEvent(Player player,
Location from,
Location to)
|
|
PlayerPickupItemEvent(Player player,
Item item,
int remaining)
|
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta)
|
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta,
PlayerTeleportEvent.TeleportCause cause)
|
|
PlayerQuitEvent(Player who,
String quitMessage)
|
|
PlayerRegisterChannelEvent(Player player,
String channel)
|
|
PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn)
|
|
PlayerShearEntityEvent(Player who,
Entity what)
|
|
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)
|
|
PlayerUnregisterChannelEvent(Player player,
String channel)
|
|
PlayerVelocityEvent(Player player,
Vector velocity)
|
Constructor parameters in org.bukkit.event.player with type arguments of type Player | |
---|---|
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.world |
---|
Methods in org.bukkit.event.world that return Player | |
---|---|
Player |
StructureGrowEvent.getPlayer()
Gets the player that created the structure. |
Constructors in org.bukkit.event.world with parameters of type Player | |
---|---|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
List<BlockState> blocks)
|
Uses of Player in org.bukkit.map |
---|
Methods in org.bukkit.map with parameters of type Player | |
---|---|
abstract void |
MapRenderer.render(MapView map,
MapCanvas canvas,
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 | |
---|---|
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |