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.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.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Player |
OfflinePlayer.getPlayer()
Gets a
Player object that this represents, if there is one
If the player is online, this will return that player. |
@Nullable 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 @Nullable Player |
Bukkit.getPlayer(@NotNull String name)
Gets a player object by the given username.
|
@Nullable Player |
Server.getPlayer(@NotNull String name)
Gets a player object by the given username.
|
@Nullable Player |
Server.getPlayer(@NotNull String name)
Gets a player object by the given username.
|
static @Nullable Player |
Bukkit.getPlayer(@NotNull String name)
Gets a player object by the given username.
|
static @Nullable Player |
Bukkit.getPlayer(@NotNull UUID id)
Gets the player with the given UUID.
|
@Nullable Player |
Server.getPlayer(@NotNull UUID id)
Gets the player with the given UUID.
|
@Nullable Player |
Server.getPlayer(@NotNull UUID id)
Gets the player with the given UUID.
|
static @Nullable Player |
Bukkit.getPlayer(@NotNull UUID id)
Gets the player with the given UUID.
|
static @Nullable Player |
Bukkit.getPlayerExact(@NotNull String name)
Gets the player with the exact given name, case insensitive.
|
@Nullable Player |
Server.getPlayerExact(@NotNull String name)
Gets the player with the exact given name, case insensitive.
|
@Nullable Player |
Server.getPlayerExact(@NotNull String name)
Gets the player with the exact given name, case insensitive.
|
static @Nullable Player |
Bukkit.getPlayerExact(@NotNull String name)
Gets the player with the exact given name, case insensitive.
|
Modifier and Type | Method and Description |
---|---|
void |
BossBar.addPlayer(@NotNull Player player)
Adds the player to this boss bar causing it to display on their screen.
|
void |
BossBar.addPlayer(@NotNull Player player)
Adds the player to this boss bar causing it to display on their screen.
|
void |
BossBar.removePlayer(@NotNull Player player)
Removes the player from this boss bar causing it to be removed from their
screen.
|
void |
BossBar.removePlayer(@NotNull Player player)
Removes the player from this boss bar causing it to be removed from their
screen.
|
Modifier and Type | Method and Description |
---|---|
protected abstract @Nullable Prompt |
PlayerNamePrompt.acceptValidatedInput(@NotNull ConversationContext context,
@NotNull Player input)
Override this method to perform some action with the user's player name
response.
|
protected abstract @Nullable Prompt |
PlayerNamePrompt.acceptValidatedInput(@NotNull ConversationContext context,
@NotNull Player input)
Override this method to perform some action with the user's player name
response.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Player |
LivingEntity.getKiller()
Gets the player identified as the killer of the living entity.
|
@Nullable Player |
LivingEntity.getKiller()
Gets the player identified as the killer of the living entity.
|
Modifier and Type | Method and Description |
---|---|
Set<Player> |
Player.Spigot.getHiddenPlayers()
Gets all players hidden with
hidePlayer(org.bukkit.entity.Player) . |
Set<Player> |
Player.Spigot.getHiddenPlayers()
Gets all players hidden with
hidePlayer(org.bukkit.entity.Player) . |
Modifier and Type | Method and Description |
---|---|
boolean |
Player.canSee(@NotNull Player player)
Checks to see if a player has been hidden from this player
|
boolean |
Player.canSee(@NotNull Player player)
Checks to see if a player has been hidden from this player
|
void |
Player.hidePlayer(@NotNull Player player)
Deprecated.
|
void |
Player.hidePlayer(@NotNull Player player)
Deprecated.
|
void |
Player.hidePlayer(@NotNull Plugin plugin,
@NotNull Player player)
Hides a player from this player
|
void |
Player.hidePlayer(@NotNull Plugin plugin,
@NotNull Player player)
Hides a player from this player
|
void |
Player.showPlayer(@NotNull Player player)
Deprecated.
|
void |
Player.showPlayer(@NotNull Player player)
Deprecated.
|
void |
Player.showPlayer(@NotNull Plugin plugin,
@NotNull Player player)
Allows this player to see a player that was previously hidden.
|
void |
Player.showPlayer(@NotNull Plugin plugin,
@NotNull Player player)
Allows this player to see a player that was previously hidden.
|
Modifier and Type | Field and Description |
---|---|
protected Player |
BlockPlaceEvent.player |
protected Player |
BlockPlaceEvent.player |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
BlockBreakEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.
|
@Nullable Player |
BlockCanBuildEvent.getPlayer()
Gets the player who placed the block involved in this event.
|
@NotNull Player |
BlockDamageEvent.getPlayer()
Gets the player damaging the block involved in this event.
|
@NotNull Player |
BlockDropItemEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.
|
@Nullable Player |
BlockFertilizeEvent.getPlayer()
Gets the player that triggered the fertilization.
|
@NotNull Player |
BlockPlaceEvent.getPlayer()
Gets the player who placed the block involved in this event.
|
@NotNull Player |
SignChangeEvent.getPlayer()
Gets the player changing the sign involved in this event.
|
@Nullable Player |
BlockIgniteEvent.getPlayer()
Gets the player who ignited this block
|
@Nullable Player |
BlockIgniteEvent.getPlayer()
Gets the player who ignited this block
|
@NotNull Player |
SignChangeEvent.getPlayer()
Gets the player changing the sign involved in this event.
|
@NotNull Player |
BlockPlaceEvent.getPlayer()
Gets the player who placed the block involved in this event.
|
@Nullable Player |
BlockFertilizeEvent.getPlayer()
Gets the player that triggered the fertilization.
|
@NotNull Player |
BlockDropItemEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.
|
@NotNull Player |
BlockDamageEvent.getPlayer()
Gets the player damaging the block involved in this event.
|
@Nullable Player |
BlockCanBuildEvent.getPlayer()
Gets the player who placed the block involved in this event.
|
@NotNull Player |
BlockBreakEvent.getPlayer()
Gets the Player that is breaking the block involved in this event.
|
Constructor and Description |
---|
BlockBreakEvent(@NotNull Block theBlock,
@NotNull Player player) |
BlockBreakEvent(@NotNull Block theBlock,
@NotNull Player player) |
BlockCanBuildEvent(@NotNull Block block,
@Nullable Player player,
@NotNull BlockData type,
boolean canBuild) |
BlockCanBuildEvent(@NotNull Block block,
@Nullable Player player,
@NotNull BlockData type,
boolean canBuild) |
BlockDamageEvent(@NotNull Player player,
@NotNull Block block,
@NotNull ItemStack itemInHand,
boolean instaBreak) |
BlockDamageEvent(@NotNull Player player,
@NotNull Block block,
@NotNull ItemStack itemInHand,
boolean instaBreak) |
BlockDropItemEvent(@NotNull Block block,
@NotNull BlockState blockState,
@NotNull Player player,
@NotNull List<Item> items) |
BlockDropItemEvent(@NotNull Block block,
@NotNull BlockState blockState,
@NotNull Player player,
@NotNull List<Item> items) |
BlockFertilizeEvent(@NotNull Block theBlock,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
BlockFertilizeEvent(@NotNull Block theBlock,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
BlockMultiPlaceEvent(@NotNull List<BlockState> states,
@NotNull Block clicked,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild) |
BlockMultiPlaceEvent(@NotNull List<BlockState> states,
@NotNull Block clicked,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild) |
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild)
Deprecated.
|
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild)
Deprecated.
|
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild,
@NotNull EquipmentSlot hand) |
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild,
@NotNull EquipmentSlot hand) |
SignChangeEvent(@NotNull Block theBlock,
@NotNull Player thePlayer,
@NotNull String[] theLines) |
SignChangeEvent(@NotNull Block theBlock,
@NotNull Player thePlayer,
@NotNull String[] theLines) |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
EnchantItemEvent.getEnchanter()
Gets the player enchanting the item
|
@NotNull Player |
PrepareItemEnchantEvent.getEnchanter()
Gets the player enchanting the item
|
@NotNull Player |
PrepareItemEnchantEvent.getEnchanter()
Gets the player enchanting the item
|
@NotNull Player |
EnchantItemEvent.getEnchanter()
Gets the player enchanting the item
|
Constructor and Description |
---|
EnchantItemEvent(@NotNull Player enchanter,
@NotNull InventoryView view,
@NotNull Block table,
@NotNull ItemStack item,
int level,
@NotNull Map<Enchantment,Integer> enchants,
int i) |
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) |
PrepareItemEnchantEvent(@NotNull Player enchanter,
@NotNull InventoryView view,
@NotNull Block table,
@NotNull ItemStack item,
@NotNull EnchantmentOffer[] offers,
int bonus) |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
PlayerDeathEvent.getEntity() |
@NotNull Player |
PlayerDeathEvent.getEntity() |
@NotNull Player |
PlayerLeashEntityEvent.getPlayer()
Returns the player involved in this event
|
@Nullable Player |
EntityPlaceEvent.getPlayer()
Deprecated.
Returns the player placing the entity
|
@Nullable Player |
EntityPlaceEvent.getPlayer()
Deprecated.
Returns the player placing the entity
|
@NotNull Player |
PlayerLeashEntityEvent.getPlayer()
Returns the player involved in this event
|
Constructor and Description |
---|
EntityPlaceEvent(@NotNull Entity entity,
@Nullable Player player,
@NotNull Block block,
@NotNull BlockFace blockFace)
Deprecated.
|
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,
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,
int newExp,
@Nullable String deathMessage) |
PlayerDeathEvent(@NotNull Player player,
@NotNull List<ItemStack> drops,
int droppedExp,
@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) |
PlayerLeashEntityEvent(@NotNull Entity what,
@NotNull Entity leashHolder,
@NotNull Player leasher) |
Modifier and Type | Method and Description |
---|---|
@Nullable Player |
HangingPlaceEvent.getPlayer()
Returns the player placing the hanging entity
|
@Nullable Player |
HangingPlaceEvent.getPlayer()
Returns the player placing the hanging entity
|
Constructor and Description |
---|
HangingPlaceEvent(@NotNull Hanging hanging,
@Nullable Player player,
@NotNull Block block,
@NotNull BlockFace blockFace) |
HangingPlaceEvent(@NotNull Hanging hanging,
@Nullable Player player,
@NotNull Block block,
@NotNull BlockFace blockFace) |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
FurnaceExtractEvent.getPlayer()
Get the player that triggered the event
|
@NotNull Player |
FurnaceExtractEvent.getPlayer()
Get the player that triggered the event
|
Constructor and Description |
---|
FurnaceExtractEvent(@NotNull Player player,
@NotNull Block block,
@NotNull Material itemType,
int itemAmount,
int exp) |
FurnaceExtractEvent(@NotNull Player player,
@NotNull Block block,
@NotNull Material itemType,
int itemAmount,
int exp) |
Modifier and Type | Field and Description |
---|---|
protected Player |
PlayerEvent.player |
protected Player |
PlayerEvent.player |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
PlayerEvent.getPlayer()
Returns the player involved in this event
|
@NotNull Player |
PlayerUnleashEntityEvent.getPlayer()
Returns the player who is unleashing the entity.
|
@NotNull Player |
PlayerUnleashEntityEvent.getPlayer()
Returns the player who is unleashing the entity.
|
@NotNull Player |
PlayerEvent.getPlayer()
Returns the player involved in this event
|
Modifier and Type | Method and Description |
---|---|
void |
PlayerChatEvent.setPlayer(@NotNull Player player)
Deprecated.
Sets the player that this message will display as, or command will be
executed as
|
void |
PlayerCommandPreprocessEvent.setPlayer(@NotNull Player player)
Sets the player that this command will be executed as.
|
void |
PlayerCommandPreprocessEvent.setPlayer(@NotNull Player player)
Sets the player that this command will be executed as.
|
void |
PlayerChatEvent.setPlayer(@NotNull Player player)
Deprecated.
Sets the player that this message will display as, or command will be
executed as
|
Constructor and Description |
---|
AsyncPlayerChatEvent(boolean async,
@NotNull Player who,
@NotNull String message,
@NotNull Set<Player> players) |
AsyncPlayerChatEvent(boolean async,
@NotNull Player who,
@NotNull String message,
@NotNull Set<Player> players) |
PlayerAdvancementDoneEvent(@NotNull Player who,
@NotNull Advancement advancement) |
PlayerAdvancementDoneEvent(@NotNull Player who,
@NotNull Advancement advancement) |
PlayerAnimationEvent(@NotNull Player player)
Construct a new PlayerAnimation event
|
PlayerAnimationEvent(@NotNull Player player)
Construct a new PlayerAnimation event
|
PlayerArmorStandManipulateEvent(@NotNull Player who,
@NotNull ArmorStand clickedEntity,
@NotNull ItemStack playerItem,
@NotNull ItemStack armorStandItem,
@NotNull EquipmentSlot slot) |
PlayerArmorStandManipulateEvent(@NotNull Player who,
@NotNull ArmorStand clickedEntity,
@NotNull ItemStack playerItem,
@NotNull ItemStack armorStandItem,
@NotNull EquipmentSlot slot) |
PlayerBedEnterEvent(@NotNull Player who,
@NotNull Block bed)
Deprecated.
|
PlayerBedEnterEvent(@NotNull Player who,
@NotNull Block bed)
Deprecated.
|
PlayerBedEnterEvent(@NotNull Player who,
@NotNull Block bed,
@NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult) |
PlayerBedEnterEvent(@NotNull Player who,
@NotNull Block bed,
@NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult) |
PlayerBedLeaveEvent(@NotNull Player who,
@NotNull Block bed,
boolean setBedSpawn) |
PlayerBedLeaveEvent(@NotNull Player who,
@NotNull Block bed,
boolean setBedSpawn) |
PlayerBucketEmptyEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketEmptyEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketEmptyEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerBucketEmptyEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerBucketEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerBucketEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerBucketFillEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketFillEvent(@NotNull Player who,
@NotNull Block block,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand) |
PlayerBucketFillEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerBucketFillEvent(@NotNull Player who,
@NotNull Block blockClicked,
@NotNull BlockFace blockFace,
@NotNull Material bucket,
@NotNull ItemStack itemInHand)
Deprecated.
|
PlayerChangedMainHandEvent(@NotNull Player who,
@NotNull MainHand mainHand) |
PlayerChangedMainHandEvent(@NotNull Player who,
@NotNull MainHand mainHand) |
PlayerChangedWorldEvent(@NotNull Player player,
@NotNull World from) |
PlayerChangedWorldEvent(@NotNull Player player,
@NotNull World from) |
PlayerChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerChatEvent(@NotNull Player player,
@NotNull String message)
Deprecated.
|
PlayerChatEvent(@NotNull Player player,
@NotNull String message)
Deprecated.
|
PlayerChatEvent(@NotNull Player player,
@NotNull String message,
@NotNull String format,
@NotNull Set<Player> recipients)
Deprecated.
|
PlayerChatEvent(@NotNull Player player,
@NotNull String message,
@NotNull String format,
@NotNull Set<Player> recipients)
Deprecated.
|
PlayerChatTabCompleteEvent(@NotNull Player who,
@NotNull String message,
@NotNull Collection<String> completions)
Deprecated.
|
PlayerChatTabCompleteEvent(@NotNull Player who,
@NotNull String message,
@NotNull Collection<String> completions)
Deprecated.
|
PlayerCommandPreprocessEvent(@NotNull Player player,
@NotNull String message) |
PlayerCommandPreprocessEvent(@NotNull Player player,
@NotNull String message) |
PlayerCommandPreprocessEvent(@NotNull Player player,
@NotNull String message,
@NotNull Set<Player> recipients) |
PlayerCommandPreprocessEvent(@NotNull Player player,
@NotNull String message,
@NotNull Set<Player> recipients) |
PlayerCommandSendEvent(@NotNull Player player,
@NotNull Collection<String> commands) |
PlayerCommandSendEvent(@NotNull Player player,
@NotNull Collection<String> commands) |
PlayerDropItemEvent(@NotNull Player player,
@NotNull Item drop) |
PlayerDropItemEvent(@NotNull Player player,
@NotNull Item drop) |
PlayerEditBookEvent(@NotNull Player who,
int slot,
@NotNull BookMeta previousBookMeta,
@NotNull BookMeta newBookMeta,
boolean isSigning) |
PlayerEditBookEvent(@NotNull Player who,
int slot,
@NotNull BookMeta previousBookMeta,
@NotNull BookMeta newBookMeta,
boolean isSigning) |
PlayerEggThrowEvent(@NotNull Player player,
@NotNull Egg egg,
boolean hatching,
byte numHatches,
@NotNull EntityType hatchingType) |
PlayerEggThrowEvent(@NotNull Player player,
@NotNull Egg egg,
boolean hatching,
byte numHatches,
@NotNull EntityType hatchingType) |
PlayerEvent(@NotNull Player who) |
PlayerEvent(@NotNull Player who) |
PlayerExpChangeEvent(@NotNull Player player,
int expAmount) |
PlayerExpChangeEvent(@NotNull Player player,
int expAmount) |
PlayerFishEvent(@NotNull Player player,
@Nullable Entity entity,
@NotNull FishHook hookEntity,
@NotNull PlayerFishEvent.State state) |
PlayerFishEvent(@NotNull Player player,
@Nullable Entity entity,
@NotNull FishHook hookEntity,
@NotNull PlayerFishEvent.State state) |
PlayerGameModeChangeEvent(@NotNull Player player,
@NotNull GameMode newGameMode) |
PlayerGameModeChangeEvent(@NotNull Player player,
@NotNull GameMode newGameMode) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position,
@NotNull EquipmentSlot hand) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position,
@NotNull EquipmentSlot hand) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull EquipmentSlot hand) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull EquipmentSlot hand) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace,
@Nullable EquipmentSlot hand) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace,
@Nullable EquipmentSlot hand) |
PlayerItemBreakEvent(@NotNull Player player,
@NotNull ItemStack brokenItem) |
PlayerItemBreakEvent(@NotNull Player player,
@NotNull ItemStack brokenItem) |
PlayerItemConsumeEvent(@NotNull Player player,
@NotNull ItemStack item) |
PlayerItemConsumeEvent(@NotNull Player player,
@NotNull ItemStack item) |
PlayerItemDamageEvent(@NotNull Player player,
@NotNull ItemStack what,
int damage) |
PlayerItemDamageEvent(@NotNull Player player,
@NotNull ItemStack what,
int damage) |
PlayerItemHeldEvent(@NotNull Player player,
int previous,
int current) |
PlayerItemHeldEvent(@NotNull Player player,
int previous,
int current) |
PlayerItemMendEvent(@NotNull Player who,
@NotNull ItemStack item,
@NotNull ExperienceOrb experienceOrb,
int repairAmount) |
PlayerItemMendEvent(@NotNull Player who,
@NotNull ItemStack item,
@NotNull ExperienceOrb experienceOrb,
int repairAmount) |
PlayerJoinEvent(@NotNull Player playerJoined,
@Nullable String joinMessage) |
PlayerJoinEvent(@NotNull Player playerJoined,
@Nullable String joinMessage) |
PlayerKickEvent(@NotNull Player playerKicked,
@NotNull String kickReason,
@NotNull String leaveMessage) |
PlayerKickEvent(@NotNull Player playerKicked,
@NotNull String kickReason,
@NotNull String leaveMessage) |
PlayerLevelChangeEvent(@NotNull Player player,
int oldLevel,
int newLevel) |
PlayerLevelChangeEvent(@NotNull Player player,
int oldLevel,
int newLevel) |
PlayerLocaleChangeEvent(@NotNull Player who,
@NotNull String locale) |
PlayerLocaleChangeEvent(@NotNull Player who,
@NotNull String locale) |
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address) |
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address) |
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull InetAddress realAddress)
This constructor defaults message to an empty string, and result to
ALLOWED
|
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull InetAddress realAddress)
This constructor defaults message to an empty string, and result to
ALLOWED
|
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull PlayerLoginEvent.Result result,
@NotNull String message,
@NotNull InetAddress realAddress)
This constructor pre-configures the event with a result and message
|
PlayerLoginEvent(@NotNull Player player,
@NotNull String hostname,
@NotNull InetAddress address,
@NotNull PlayerLoginEvent.Result result,
@NotNull String message,
@NotNull InetAddress realAddress)
This constructor pre-configures the event with a result and message
|
PlayerMoveEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerMoveEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerPickupArrowEvent(@NotNull Player player,
@NotNull Item item,
@NotNull AbstractArrow arrow) |
PlayerPickupArrowEvent(@NotNull Player player,
@NotNull Item item,
@NotNull AbstractArrow arrow) |
PlayerPickupItemEvent(@NotNull Player player,
@NotNull Item item,
int remaining)
Deprecated.
|
PlayerPickupItemEvent(@NotNull Player player,
@NotNull Item item,
int remaining)
Deprecated.
|
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause) |
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause) |
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause,
int getSearchRadius,
boolean canCreatePortal,
int creationRadius) |
PlayerPortalEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause,
int getSearchRadius,
boolean canCreatePortal,
int creationRadius) |
PlayerQuitEvent(@NotNull Player who,
@Nullable String quitMessage) |
PlayerQuitEvent(@NotNull Player who,
@Nullable String quitMessage) |
PlayerRecipeDiscoverEvent(@NotNull Player who,
@NotNull NamespacedKey recipe) |
PlayerRecipeDiscoverEvent(@NotNull Player who,
@NotNull NamespacedKey recipe) |
PlayerRegisterChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerRegisterChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerResourcePackStatusEvent(@NotNull Player who,
@NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus) |
PlayerResourcePackStatusEvent(@NotNull Player who,
@NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus) |
PlayerRespawnEvent(@NotNull Player respawnPlayer,
@NotNull Location respawnLocation,
boolean isBedSpawn) |
PlayerRespawnEvent(@NotNull Player respawnPlayer,
@NotNull Location respawnLocation,
boolean isBedSpawn) |
PlayerRiptideEvent(@NotNull Player who,
@NotNull ItemStack item) |
PlayerRiptideEvent(@NotNull Player who,
@NotNull ItemStack item) |
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what)
Deprecated.
|
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what)
Deprecated.
|
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what,
@NotNull ItemStack item,
@NotNull EquipmentSlot hand) |
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what,
@NotNull ItemStack item,
@NotNull EquipmentSlot hand) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue,
@NotNull EntityType entityType) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue,
@NotNull EntityType entityType) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue,
@NotNull Material material) |
PlayerStatisticIncrementEvent(@NotNull Player player,
@NotNull Statistic statistic,
int initialValue,
int newValue,
@NotNull Material material) |
PlayerSwapHandItemsEvent(@NotNull Player player,
@NotNull ItemStack mainHandItem,
@NotNull ItemStack offHandItem) |
PlayerSwapHandItemsEvent(@NotNull Player player,
@NotNull ItemStack mainHandItem,
@NotNull ItemStack offHandItem) |
PlayerTakeLecternBookEvent(@NotNull Player who,
@NotNull Lectern lectern) |
PlayerTakeLecternBookEvent(@NotNull Player who,
@NotNull Lectern lectern) |
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause) |
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause) |
PlayerToggleFlightEvent(@NotNull Player player,
boolean isFlying) |
PlayerToggleFlightEvent(@NotNull Player player,
boolean isFlying) |
PlayerToggleSneakEvent(@NotNull Player player,
boolean isSneaking) |
PlayerToggleSneakEvent(@NotNull Player player,
boolean isSneaking) |
PlayerToggleSprintEvent(@NotNull Player player,
boolean isSprinting) |
PlayerToggleSprintEvent(@NotNull Player player,
boolean isSprinting) |
PlayerUnleashEntityEvent(@NotNull Entity entity,
@NotNull Player player) |
PlayerUnleashEntityEvent(@NotNull Entity entity,
@NotNull Player player) |
PlayerUnregisterChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerUnregisterChannelEvent(@NotNull Player player,
@NotNull String channel) |
PlayerVelocityEvent(@NotNull Player player,
@NotNull Vector velocity) |
PlayerVelocityEvent(@NotNull Player player,
@NotNull Vector velocity) |
Modifier and Type | Method and Description |
---|---|
@NotNull Player |
RaidTriggerEvent.getPlayer()
Returns the player who triggered the raid.
|
@NotNull Player |
RaidTriggerEvent.getPlayer()
Returns the player who triggered the raid.
|
Constructor and Description |
---|
RaidTriggerEvent(@NotNull Raid raid,
@NotNull World world,
@NotNull Player player) |
RaidTriggerEvent(@NotNull Raid raid,
@NotNull World world,
@NotNull Player player) |
Modifier and Type | Method and Description |
---|---|
@Nullable Player |
StructureGrowEvent.getPlayer()
Gets the player that created the structure.
|
@Nullable Player |
StructureGrowEvent.getPlayer()
Gets the player that created the structure.
|
Constructor and Description |
---|
StructureGrowEvent(@NotNull Location location,
@NotNull TreeType species,
boolean bonemeal,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
StructureGrowEvent(@NotNull Location location,
@NotNull TreeType species,
boolean bonemeal,
@Nullable Player player,
@NotNull List<BlockState> blocks) |
Modifier and Type | Method and Description |
---|---|
abstract void |
MapRenderer.render(@NotNull MapView map,
@NotNull MapCanvas canvas,
@NotNull Player player)
Render to the given map.
|
abstract void |
MapRenderer.render(@NotNull MapView map,
@NotNull MapCanvas canvas,
@NotNull Player player)
Render to the given map.
|
Modifier and Type | Method and Description |
---|---|
void |
Messenger.dispatchIncomingMessage(@NotNull Player source,
@NotNull String channel,
@NotNull byte[] message)
Dispatches the specified incoming message to any registered listeners.
|
void |
StandardMessenger.dispatchIncomingMessage(@NotNull Player source,
@NotNull String channel,
@NotNull byte[] message) |
void |
StandardMessenger.dispatchIncomingMessage(@NotNull Player source,
@NotNull String channel,
@NotNull byte[] message) |
void |
Messenger.dispatchIncomingMessage(@NotNull Player source,
@NotNull String channel,
@NotNull byte[] message)
Dispatches the specified incoming message to any registered listeners.
|
void |
PluginMessageListener.onPluginMessageReceived(@NotNull String channel,
@NotNull Player player,
@NotNull byte[] message)
A method that will be thrown when a PluginMessageSource sends a plugin
message on a registered channel.
|
void |
PluginMessageListener.onPluginMessageReceived(@NotNull String channel,
@NotNull Player player,
@NotNull byte[] message)
A method that will be thrown when a PluginMessageSource sends a plugin
message on a registered channel.
|
Constructor and Description |
---|
PlayerSpawnLocationEvent(@NotNull Player who,
@NotNull Location spawnLocation) |
PlayerSpawnLocationEvent(@NotNull Player who,
@NotNull Location spawnLocation) |
Copyright © 2022. All rights reserved.