Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.boss | |
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.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 |
Modifier and Type | Method | Description |
---|---|---|
static Player |
Bukkit.getPlayer(java.lang.String name) |
Gets a player object by the given username.
|
static Player |
Bukkit.getPlayer(java.util.UUID id) |
Gets the player with the given UUID.
|
Player |
OfflinePlayer.getPlayer() |
Gets a
Player object that this represents, if there is one |
Player |
Server.getPlayer(java.lang.String name) |
Gets a player object by the given username.
|
Player |
Server.getPlayer(java.util.UUID id) |
Gets the player with the given UUID.
|
static Player |
Bukkit.getPlayerExact(java.lang.String name) |
Gets the player with the exact given name, case insensitive.
|
Player |
Server.getPlayerExact(java.lang.String name) |
Gets the player with the exact given name, case insensitive.
|
Modifier and Type | Method | Description |
---|---|---|
static java.util.Collection<? extends Player> |
Bukkit.getOnlinePlayers() |
Gets a view of all currently logged in players.
|
java.util.Collection<? extends Player> |
Server.getOnlinePlayers() |
Gets a view of all currently logged in players.
|
java.util.List<Player> |
World.getPlayers() |
Get a list of all players in this World
|
static java.util.List<Player> |
Bukkit.matchPlayer(java.lang.String name) |
Attempts to match any players with the given name, and returns a list
of all possibly matches.
|
java.util.List<Player> |
Server.matchPlayer(java.lang.String name) |
Attempts to match any players with the given name, and returns a list
of all possibly matches.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.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 |
---|---|---|
java.util.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 |
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 |
BlockDamageEvent.getPlayer() |
Gets the player damaging the block involved in this event.
|
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) |
|
BlockDamageEvent(Player player,
Block block,
ItemStack itemInHand,
boolean instaBreak) |
|
BlockMultiPlaceEvent(java.util.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,
java.lang.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,
java.util.Map<Enchantment,java.lang.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 |
PlayerLeashEntityEvent.getPlayer() |
Returns the player involved in this event
|
Constructor | Description |
---|---|
PlayerDeathEvent(Player player,
java.util.List<ItemStack> drops,
int droppedExp,
int newExp,
int newTotalExp,
int newLevel,
java.lang.String deathMessage) |
|
PlayerDeathEvent(Player player,
java.util.List<ItemStack> drops,
int droppedExp,
int newExp,
java.lang.String deathMessage) |
|
PlayerDeathEvent(Player player,
java.util.List<ItemStack> drops,
int droppedExp,
java.lang.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 |
---|---|---|
java.util.Set<Player> |
AsyncPlayerChatEvent.getRecipients() |
Gets a set of recipients that this chat message will be displayed to.
|
java.util.Set<Player> |
PlayerChatEvent.getRecipients() |
Deprecated.
Gets a set of recipients that this chat message will be displayed to
|
java.util.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,
java.lang.String message,
java.util.Set<Player> players) |
|
PlayerAchievementAwardedEvent(Player player,
Achievement achievement) |
Deprecated.
|
PlayerAdvancementDoneEvent(Player who,
Advancement advancement) |
|
PlayerAnimationEvent(Player player) |
Construct a new PlayerAnimation event
|
PlayerArmorStandManipulateEvent(Player who,
ArmorStand clickedEntity,
ItemStack playerItem,
ItemStack armorStandItem,
EquipmentSlot slot) |
|
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) |
|
PlayerChangedMainHandEvent(Player who,
MainHand mainHand) |
|
PlayerChangedWorldEvent(Player player,
World from) |
|
PlayerChannelEvent(Player player,
java.lang.String channel) |
|
PlayerChatEvent(Player player,
java.lang.String message) |
Deprecated.
|
PlayerChatEvent(Player player,
java.lang.String message,
java.lang.String format,
java.util.Set<Player> recipients) |
Deprecated.
|
PlayerChatTabCompleteEvent(Player who,
java.lang.String message,
java.util.Collection<java.lang.String> completions) |
|
PlayerCommandPreprocessEvent(Player player,
java.lang.String message) |
|
PlayerCommandPreprocessEvent(Player player,
java.lang.String message,
java.util.Set<Player> recipients) |
|
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,
Fish hookEntity,
PlayerFishEvent.State state) |
|
PlayerGameModeChangeEvent(Player player,
GameMode newGameMode) |
|
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,
java.lang.String joinMessage) |
|
PlayerKickEvent(Player playerKicked,
java.lang.String kickReason,
java.lang.String leaveMessage) |
|
PlayerLevelChangeEvent(Player player,
int oldLevel,
int newLevel) |
|
PlayerLocaleChangeEvent(Player who,
java.lang.String locale) |
|
PlayerLoginEvent(Player player,
java.lang.String hostname,
java.net.InetAddress address) |
|
PlayerLoginEvent(Player player,
java.lang.String hostname,
java.net.InetAddress address,
java.net.InetAddress realAddress) |
This constructor defaults message to an empty string, and result to
ALLOWED
|
PlayerLoginEvent(Player player,
java.lang.String hostname,
java.net.InetAddress address,
PlayerLoginEvent.Result result,
java.lang.String message,
java.net.InetAddress realAddress) |
This constructor pre-configures the event with a result and message
|
PlayerMoveEvent(Player player,
Location from,
Location to) |
|
PlayerPickupArrowEvent(Player player,
Item item,
Arrow arrow) |
|
PlayerPickupItemEvent(Player player,
Item item,
int remaining) |
Deprecated.
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta) |
|
PlayerPortalEvent(Player player,
Location from,
Location to,
TravelAgent pta,
PlayerTeleportEvent.TeleportCause cause) |
|
PlayerQuitEvent(Player who,
java.lang.String quitMessage) |
|
PlayerRegisterChannelEvent(Player player,
java.lang.String channel) |
|
PlayerResourcePackStatusEvent(Player who,
PlayerResourcePackStatusEvent.Status resourcePackStatus) |
|
PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn) |
|
PlayerShearEntityEvent(Player who,
Entity what) |
|
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) |
|
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,
java.lang.String channel) |
|
PlayerVelocityEvent(Player player,
Vector velocity) |
Constructor | Description |
---|---|
AsyncPlayerChatEvent(boolean async,
Player who,
java.lang.String message,
java.util.Set<Player> players) |
|
PlayerChatEvent(Player player,
java.lang.String message,
java.lang.String format,
java.util.Set<Player> recipients) |
Deprecated.
|
PlayerCommandPreprocessEvent(Player player,
java.lang.String message,
java.util.Set<Player> recipients) |
Modifier and Type | Method | Description |
---|---|---|
java.util.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,
java.util.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,
java.lang.String channel,
byte[] message) |
Dispatches the specified incoming message to any registered listeners.
|
void |
StandardMessenger.dispatchIncomingMessage(Player source,
java.lang.String channel,
byte[] message) |
|
void |
PluginMessageListener.onPluginMessageReceived(java.lang.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 © 2018. All rights reserved.