Uses of Class
org.bukkit.event.Event
Package | Description |
---|---|
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.server |
Events relating to programmatic state
changes on the server. |
org.bukkit.event.vehicle |
Events relating to vehicular entities . |
org.bukkit.event.weather |
Events relating to weather. |
org.bukkit.event.world | |
org.bukkit.plugin |
Classes specifically relating to loading software modules at runtime.
|
org.bukkit.plugin.java |
Classes for handling
plugins written in
java. |
org.spigotmc.event.entity |
Spigot-specific entity events.
|
org.spigotmc.event.player |
Spigot-specific player events.
|
-
Uses of Event in org.bukkit.event.block
Subclasses of Event in org.bukkit.event.block Modifier and Type Class Description class
BlockBreakEvent
Called when a block is broken by a player.class
BlockBurnEvent
Called when a block is destroyed as a result of being burnt by fire.class
BlockCanBuildEvent
Called when we try to place a block, to see if we can build it here or not.class
BlockCookEvent
Called when an ItemStack is successfully cooked in a block.class
BlockDamageEvent
Called when a block is damaged by a player.class
BlockDispenseArmorEvent
Called when an equippable item is dispensed from a block and equipped on a nearby entity.class
BlockDispenseEvent
Called when an item is dispensed from a block.class
BlockDropItemEvent
Called if a block broken by a player drops an item.class
BlockEvent
Represents a block related event.class
BlockExpEvent
An event that's called when a block yields experience.class
BlockExplodeEvent
Called when a block explodesclass
BlockFadeEvent
Called when a block fades, melts or disappears based on world conditionsclass
BlockFertilizeEvent
Called with the block changes resulting from a player fertilizing a given block with bonemeal.class
BlockFormEvent
Called when a block is formed or spreads based on world conditions.class
BlockFromToEvent
Represents events with a source block and a destination block, currently only applies to liquid (lava and water) and teleporting dragon eggs.class
BlockGrowEvent
Called when a block grows naturally in the world.class
BlockIgniteEvent
Called when a block is ignited.class
BlockMultiPlaceEvent
Fired when a single block placement action of a player triggers the creation of multiple blocks(e.g.class
BlockPhysicsEvent
Thrown when a block physics check is called.class
BlockPistonEvent
Called when a piston block is triggeredclass
BlockPistonExtendEvent
Called when a piston extendsclass
BlockPistonRetractEvent
Called when a piston retractsclass
BlockPlaceEvent
Called when a block is placed by a player.class
BlockRedstoneEvent
Called when a redstone current changesclass
BlockShearEntityEvent
Event fired when a dispenser shears a nearby sheep.class
BlockSpreadEvent
Called when a block spreads based on world conditions.class
CauldronLevelChangeEvent
class
EntityBlockFormEvent
Called when a block is formed by entities.class
FluidLevelChangeEvent
Called when the fluid level of a block changes due to changes in adjacent blocks.class
LeavesDecayEvent
Called when leaves are decaying naturally.class
MoistureChangeEvent
Called when the moisture level of a soil block changes.class
NotePlayEvent
Called when a note block is being played through player interaction or a redstone current.class
SignChangeEvent
Called when a sign is changed by a player.class
SpongeAbsorbEvent
Called when a sponge absorbs water from the world. -
Uses of Event in org.bukkit.event.enchantment
Subclasses of Event in org.bukkit.event.enchantment Modifier and Type Class Description class
EnchantItemEvent
Called when an ItemStack is successfully enchanted (currently at enchantment table)class
PrepareItemEnchantEvent
Called when an ItemStack is inserted in an enchantment table - can be called multiple times -
Uses of Event in org.bukkit.event.entity
Subclasses of Event in org.bukkit.event.entity Modifier and Type Class Description class
AreaEffectCloudApplyEvent
Called when a lingering potion applies it's effects.class
ArrowBodyCountChangeEvent
Called when an arrow enters or exists an entity's body.class
BatToggleSleepEvent
Called when a bat attempts to sleep or wake up from its slumber.class
CreatureSpawnEvent
Called when a creature is spawned into a world.class
CreeperPowerEvent
Called when a Creeper is struck by lightning.class
EnderDragonChangePhaseEvent
Called when an EnderDragon switches controller phase.class
EntityAirChangeEvent
Called when the amount of air an entity has remaining changes.class
EntityBreakDoorEvent
Called when anEntity
breaks a doorclass
EntityBreedEvent
Called when one Entity breeds with another Entity.class
EntityChangeBlockEvent
Called when any Entity changes a block and a more specific event is not available.class
EntityCombustByBlockEvent
Called when a block causes an entity to combust.class
EntityCombustByEntityEvent
Called when an entity causes another entity to combust.class
EntityCombustEvent
Called when an entity combusts.class
EntityCreatePortalEvent
Deprecated.class
EntityDamageByBlockEvent
Called when an entity is damaged by a blockclass
EntityDamageByEntityEvent
Called when an entity is damaged by an entityclass
EntityDamageEvent
Stores data for damage eventsclass
EntityDeathEvent
Thrown whenever a LivingEntity diesclass
EntityDropItemEvent
Thrown when an entity creates an item drop.class
EntityEnterBlockEvent
Called when anEntity
enters a block and is stored in that block.class
EntityEnterLoveModeEvent
Called when an entity enters love mode.class
EntityEvent
Represents an Entity-related eventclass
EntityExplodeEvent
Called when an entity explodesclass
EntityInteractEvent
Called when an entity interacts with an objectclass
EntityPickupItemEvent
Thrown when a entity picks an item up from the groundclass
EntityPlaceEvent
Deprecated.draft APIclass
EntityPortalEnterEvent
Called when an entity comes into contact with a portalclass
EntityPortalEvent
Called when a non-player entity is about to teleport because it is in contact with a portal.class
EntityPortalExitEvent
Called before an entity exits a portal.class
EntityPoseChangeEvent
Called when an entity changes its pose.class
EntityPotionEffectEvent
Called when a potion effect is modified on an entity.class
EntityRegainHealthEvent
Stores data for health-regain eventsclass
EntityResurrectEvent
Called when an entity dies and may have the opportunity to be resurrected.class
EntityShootBowEvent
Called when a LivingEntity shoots a bow firing an arrowclass
EntitySpawnEvent
Called when an entity is spawned into a world.class
EntitySpellCastEvent
Called when aSpellcaster
casts a spell.class
EntityTameEvent
Thrown when a LivingEntity is tamedclass
EntityTargetEvent
Called when a creature targets or untargets another entityclass
EntityTargetLivingEntityEvent
Called when an Entity targets aLivingEntity
and can only target LivingEntity's.class
EntityTeleportEvent
Thrown when a non-player entity is teleported from one location to another.class
EntityToggleGlideEvent
Sent when an entity's gliding status is toggled with an Elytra.class
EntityToggleSwimEvent
Sent when an entity's swimming status is toggled.class
EntityTransformEvent
Called when an entity is about to be replaced by another entity.class
EntityUnleashEvent
Called immediately prior to an entity being unleashed.class
ExpBottleEvent
Called when a ThrownExpBottle hits and releases experience.class
ExplosionPrimeEvent
Called when an entity has made a decision to explode.class
FireworkExplodeEvent
Called when a firework explodes.class
FoodLevelChangeEvent
Called when a human entity's food level changesclass
HorseJumpEvent
Called when a horse jumps.class
ItemDespawnEvent
This event is called when aItem
is removed from the world because it has existed for 5 minutes.class
ItemMergeEvent
class
ItemSpawnEvent
Called when an item is spawned into a worldclass
LingeringPotionSplashEvent
Called when a splash potion hits an areaclass
PigZapEvent
Stores data for pigs being zappedclass
PigZombieAngerEvent
Called when a Pig Zombie is angered by another entity.class
PlayerDeathEvent
Thrown whenever aPlayer
diesclass
PlayerLeashEntityEvent
Called immediately prior to a creature being leashed by a player.class
PotionSplashEvent
Called when a splash potion hits an areaclass
ProjectileHitEvent
Called when a projectile hits an objectclass
ProjectileLaunchEvent
Called when a projectile is launched.class
SheepDyeWoolEvent
Called when a sheep's wool is dyedclass
SheepRegrowWoolEvent
Called when a sheep regrows its woolclass
SlimeSplitEvent
Called when a Slime splits into smaller Slimes upon deathclass
SpawnerSpawnEvent
Called when an entity is spawned into a world by a spawner.class
StriderTemperatureChangeEvent
Called when aStrider
's temperature has changed as a result of entering or existing blocks it considers warm.class
VillagerAcquireTradeEvent
Called whenever a villager acquires a new trade.class
VillagerCareerChangeEvent
class
VillagerReplenishTradeEvent
Called when a villager's trade's maximum uses is increased, due to a player's trade. -
Uses of Event in org.bukkit.event.hanging
Subclasses of Event in org.bukkit.event.hanging Modifier and Type Class Description class
HangingBreakByEntityEvent
Triggered when a hanging entity is removed by an entityclass
HangingBreakEvent
Triggered when a hanging entity is removedclass
HangingEvent
Represents a hanging entity-related event.class
HangingPlaceEvent
Triggered when a hanging entity is created in the world -
Uses of Event in org.bukkit.event.inventory
Subclasses of Event in org.bukkit.event.inventory Modifier and Type Class Description class
BrewEvent
Called when the brewing of the contents inside the Brewing Stand is complete.class
BrewingStandFuelEvent
Called when an ItemStack is about to increase the fuel level of a brewing stand.class
CraftItemEvent
Called when the recipe of an Item is completed inside a crafting matrix.class
FurnaceBurnEvent
Called when an ItemStack is successfully burned as fuel in a furnace.class
FurnaceExtractEvent
This event is called when a player takes items out of the furnaceclass
FurnaceSmeltEvent
Called when an ItemStack is successfully smelted in a furnace.class
InventoryClickEvent
This event is called when a player clicks a slot in an inventory.class
InventoryCloseEvent
Represents a player related inventory eventclass
InventoryCreativeEvent
This event is called when a player in creative mode puts down or picks up an item in their inventory / hotbar and when they drop items from their Inventory while in creative mode.class
InventoryDragEvent
This event is called when the player drags an item in their cursor across the inventory.class
InventoryEvent
Represents a player related inventory eventclass
InventoryInteractEvent
An abstract base class for events that describe an interaction between a HumanEntity and the contents of an Inventory.class
InventoryMoveItemEvent
Called when some entity or block (e.g.class
InventoryOpenEvent
Represents a player related inventory eventclass
InventoryPickupItemEvent
Called when a hopper or hopper minecart picks up a dropped item.class
PrepareAnvilEvent
Called when an item is put in a slot for repair by an anvil.class
PrepareItemCraftEvent
class
PrepareSmithingEvent
Called when an item is put in a slot for upgrade by a Smithing Table.class
TradeSelectEvent
This event is called whenever a player clicks a new trade on the trades sidebar. -
Uses of Event in org.bukkit.event.player
Subclasses of Event in org.bukkit.event.player Modifier and Type Class Description class
AsyncPlayerChatEvent
This event will sometimes fire synchronously, depending on how it was triggered.class
AsyncPlayerPreLoginEvent
Stores details for players attempting to log in.class
PlayerAdvancementDoneEvent
Called when a player has completed all criteria in an advancement.class
PlayerAnimationEvent
Represents a player animation eventclass
PlayerArmorStandManipulateEvent
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.class
PlayerBedEnterEvent
This event is fired when the player is almost about to enter the bed.class
PlayerBedLeaveEvent
This event is fired when the player is leaving a bed.class
PlayerBucketEmptyEvent
Called when a player empties a bucketclass
PlayerBucketEvent
Called when a player interacts with a Bucketclass
PlayerBucketFillEvent
Called when a player fills a bucketclass
PlayerChangedMainHandEvent
Called when a player changes their main hand in the client settings.class
PlayerChangedWorldEvent
Called when a player switches to another world.class
PlayerChannelEvent
This event is called after a player registers or unregisters a new plugin channel.class
PlayerChatEvent
Deprecated.This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent
.class
PlayerChatTabCompleteEvent
Deprecated.This event is no longer fired due to client changesclass
PlayerCommandPreprocessEvent
This event is called whenever a player runs a command (by placing a slash at the start of their message).class
PlayerCommandSendEvent
This event is called when the list of available server commands is sent to the player.class
PlayerDropItemEvent
Thrown when a player drops an item from their inventoryclass
PlayerEditBookEvent
Called when a player edits or signs a book and quill item.class
PlayerEggThrowEvent
Called when a player throws an egg and it might hatchclass
PlayerEvent
Represents a player related eventclass
PlayerExpChangeEvent
Called when a players experience changes naturallyclass
PlayerFishEvent
Thrown when a player is fishingclass
PlayerGameModeChangeEvent
Called when the GameMode of the player is changed.class
PlayerHarvestBlockEvent
This event is called whenever a player harvests a block.class
PlayerInteractAtEntityEvent
Represents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked.class
PlayerInteractEntityEvent
Represents an event that is called when a player right clicks an entity.class
PlayerInteractEvent
Represents an event that is called when a player interacts with an object or air, potentially fired once for each hand.class
PlayerItemBreakEvent
Fired when a player's item breaks (such as a shovel or flint and steel).class
PlayerItemConsumeEvent
This event will fire when a player is finishing consuming an item (food, potion, milk bucket).class
PlayerItemDamageEvent
Called when an item used by the player takes durability damage as a result of being used.class
PlayerItemHeldEvent
Fired when a player changes their currently held itemclass
PlayerItemMendEvent
Represents when a player has an item repaired via the Mending enchantment.class
PlayerJoinEvent
Called when a player joins a serverclass
PlayerKickEvent
Called when a player gets kicked from the serverclass
PlayerLevelChangeEvent
Called when a players level changesclass
PlayerLocaleChangeEvent
Called when a player changes their locale in the client settings.class
PlayerLoginEvent
Stores details for players attempting to log in.class
PlayerMoveEvent
Holds information for player movement eventsclass
PlayerPickupArrowEvent
Thrown when a player picks up an arrow from the ground.class
PlayerPickupItemEvent
Deprecated.class
PlayerPortalEvent
Called when a player is about to teleport because it is in contact with a portal.class
PlayerPreLoginEvent
Deprecated.This event causes synchronization from the login thread;AsyncPlayerPreLoginEvent
is preferred to keep the secondary threads asynchronous.class
PlayerQuitEvent
Called when a player leaves a serverclass
PlayerRecipeDiscoverEvent
Called when a player discovers a new recipe in the recipe book.class
PlayerRegisterChannelEvent
This is called immediately after a player registers for a plugin channel.class
PlayerResourcePackStatusEvent
Called when a player takes action on a resource pack request sent viaPlayer.setResourcePack(java.lang.String)
.class
PlayerRespawnEvent
Called when a player respawns.class
PlayerRiptideEvent
This event is fired when the player activates the riptide enchantment, using their trident to propel them through the air.class
PlayerShearEntityEvent
Called when a player shears an entityclass
PlayerStatisticIncrementEvent
Called when a player statistic is incremented.class
PlayerSwapHandItemsEvent
Called when a player swap items between main hand and off hand using the hotkey.class
PlayerTakeLecternBookEvent
This event is called when a player clicks the button to take a book of a Lectern.class
PlayerTeleportEvent
Holds information for player teleport eventsclass
PlayerToggleFlightEvent
Called when a player toggles their flying stateclass
PlayerToggleSneakEvent
Called when a player toggles their sneaking stateclass
PlayerToggleSprintEvent
Called when a player toggles their sprinting stateclass
PlayerUnleashEntityEvent
Called prior to an entity being unleashed due to a player's action.class
PlayerUnregisterChannelEvent
This is called immediately after a player unregisters for a plugin channel.class
PlayerVelocityEvent
Called when the velocity of a player changes. -
Uses of Event in org.bukkit.event.raid
Subclasses of Event in org.bukkit.event.raid Modifier and Type Class Description class
RaidEvent
Represents events related to raids.class
RaidFinishEvent
This event is called when aRaid
was complete with a clear result.class
RaidSpawnWaveEvent
Called when a raid wave spawns.class
RaidStopEvent
Called when aRaid
is stopped.class
RaidTriggerEvent
Called when aRaid
is triggered (e.g: a player with Bad Omen effect enters a village). -
Uses of Event in org.bukkit.event.server
Subclasses of Event in org.bukkit.event.server Modifier and Type Class Description class
BroadcastMessageEvent
Event triggered for server broadcast messages such as fromServer.broadcast(String, String)
.class
MapInitializeEvent
Called when a map is initialized.class
PluginDisableEvent
Called when a plugin is disabled.class
PluginEnableEvent
Called when a plugin is enabled.class
PluginEvent
Used for plugin enable and disable eventsclass
RemoteServerCommandEvent
This event is called when a command is received over RCON.class
ServerCommandEvent
This event is called when a command is run by a non-player.class
ServerEvent
Miscellaneous server eventsclass
ServerListPingEvent
Called when a server list ping is coming in.class
ServerLoadEvent
This event is called when either the server startup or reload has completed.class
ServiceEvent
An event relating to a registered service.class
ServiceRegisterEvent
This event is called when a service is registered.class
ServiceUnregisterEvent
This event is called when a service is unregistered.class
TabCompleteEvent
Called when aCommandSender
of any description (ie: player or console) attempts to tab complete. -
Uses of Event in org.bukkit.event.vehicle
Subclasses of Event in org.bukkit.event.vehicle Modifier and Type Class Description class
VehicleBlockCollisionEvent
Raised when a vehicle collides with a block.class
VehicleCollisionEvent
Raised when a vehicle collides.class
VehicleCreateEvent
Raised when a vehicle is created.class
VehicleDamageEvent
Raised when a vehicle receives damage.class
VehicleDestroyEvent
Raised when a vehicle is destroyed, which could be caused by either a player or the environment.class
VehicleEnterEvent
Raised when an entity enters a vehicle.class
VehicleEntityCollisionEvent
Raised when a vehicle collides with an entity.class
VehicleEvent
Represents a vehicle-related event.class
VehicleExitEvent
Raised when a living entity exits a vehicle.class
VehicleMoveEvent
Raised when a vehicle moves.class
VehicleUpdateEvent
Called when a vehicle updates -
Uses of Event in org.bukkit.event.weather
Subclasses of Event in org.bukkit.event.weather Modifier and Type Class Description class
LightningStrikeEvent
Stores data for lightning strikingclass
ThunderChangeEvent
Stores data for thunder state changing in a worldclass
WeatherChangeEvent
Stores data for weather changing in a worldclass
WeatherEvent
Represents a Weather-related event -
Uses of Event in org.bukkit.event.world
Subclasses of Event in org.bukkit.event.world Modifier and Type Class Description class
ChunkEvent
Represents a Chunk related eventclass
ChunkLoadEvent
Called when a chunk is loadedclass
ChunkPopulateEvent
Thrown when a new chunk has finished being populated.class
ChunkUnloadEvent
Called when a chunk is unloadedclass
LootGenerateEvent
Called when aLootTable
is generated in the world for anInventoryHolder
.class
PortalCreateEvent
Called when a portal is createdclass
SpawnChangeEvent
An event that is called when a world's spawn changes.class
StructureGrowEvent
Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.class
TimeSkipEvent
Called when the time skips in a world.class
WorldEvent
Represents events within a worldclass
WorldInitEvent
Called when a World is initializingclass
WorldLoadEvent
Called when a World is loadedclass
WorldSaveEvent
Called when a World is saved.class
WorldUnloadEvent
Called when a World is unloaded -
Uses of Event in org.bukkit.plugin
Methods in org.bukkit.plugin that return types with arguments of type Event Modifier and Type Method Description Map<Class<? extends Event>,Set<RegisteredListener>>
PluginLoader. createRegisteredListeners(Listener listener, Plugin plugin)
Creates and returns registered listeners for the event classes used in this listenerClass<? extends Event>
TimedRegisteredListener. getEventClass()
Gets the class of the events this listener handled.Methods in org.bukkit.plugin with parameters of type Event Modifier and Type Method Description void
PluginManager. callEvent(Event event)
Calls an event with the given detailsvoid
RegisteredListener. callEvent(Event event)
Calls the event executorvoid
SimplePluginManager. callEvent(Event event)
Calls an event with the given details.void
TimedRegisteredListener. callEvent(Event event)
void
EventExecutor. execute(Listener listener, Event event)
Method parameters in org.bukkit.plugin with type arguments of type Event Modifier and Type Method Description void
PluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)
Registers the specified executor to the given event classvoid
PluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)
Registers the specified executor to the given event classvoid
SimplePluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin)
void
SimplePluginManager. registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled)
Registers the given event to the specified listener using a directly passed EventExecutor -
Uses of Event in org.bukkit.plugin.java
Methods in org.bukkit.plugin.java that return types with arguments of type Event Modifier and Type Method Description Map<Class<? extends Event>,Set<RegisteredListener>>
JavaPluginLoader. createRegisteredListeners(Listener listener, Plugin plugin)
-
Uses of Event in org.spigotmc.event.entity
Subclasses of Event in org.spigotmc.event.entity Modifier and Type Class Description class
EntityDismountEvent
Called when an entity stops riding another entity.class
EntityMountEvent
Called when an entity attempts to ride another entity. -
Uses of Event in org.spigotmc.event.player
Subclasses of Event in org.spigotmc.event.player Modifier and Type Class Description class
PlayerSpawnLocationEvent
Called when player is about to spawn in a world after joining the server.