Uses of Class
org.bukkit.event.Event
Packages that use Event
Package
Description
Events triggered from an enchantment table.Events relating to entities that hang.Events related to raids.Events relating to programmatic state
changes on the server.Events relating to vehicular entities.Events relating to weather.Classes specifically relating to loading software modules at runtime.
Classes for handling
plugins written in
java.Spigot-specific player events.
-
Uses of Event in org.bukkit.event.block
Subclasses of Event in org.bukkit.event.blockModifier and TypeClassDescriptionclassCalled when a bell resonated after being rung and highlights nearby raiders.classCalled when a bell is being rung.classCalled when a block is broken by a player.classCalled when a block is destroyed as a result of being burnt by fire.classCalled when we try to place a block, to see if we can build it here or not.classCalled when an ItemStack is successfully cooked in a block.classCalled when a player stops damaging a Block.classCalled when a block is damaged by a player.classCalled when an equippable item is dispensed from a block and equipped on a nearby entity.classCalled when an item is dispensed from a block.classCalled if a block broken by a player drops an item.classRepresents a block related event.classAn event that's called when a block yields experience.classCalled when a block explodes.classCalled when a block fades, melts or disappears based on world conditionsclassCalled with the block changes resulting from a player fertilizing a given block with bonemeal.classCalled when a block is formed or spreads based on world conditions.classRepresents events with a source block and a destination block, currently only applies to liquid (lava and water) and teleporting dragon eggs.classCalled when a block grows naturally in the world.classCalled when a block is ignited.classFired when a single block placement action of a player triggers the creation of multiple blocks(e.g.classThrown when a block physics check is called.classCalled when a piston block is triggeredclassCalled when a piston extendsclassCalled when a piston retractsclassCalled when a block is placed by a player.classCalled when a Sculk sensor receives a game event and hence might activate.classCalled when a redstone current changesclassEvent fired when a dispenser shears a nearby sheep.classCalled when a block spreads based on world conditions.classCalled when a brewing stand starts to brew.classCalled when a Campfire starts to cook.classclassCalled when a block is formed by entities.classCalled when the fluid level of a block changes due to changes in adjacent blocks.classUsed when: A Furnace starts smeltingFurnaceStartSmeltEventA Brewing-Stand starts brewingBrewingStartEventA Campfire starts cookingCampfireStartEventclassCalled when leaves are decaying naturally.classCalled when the moisture level of a soil block changes.classCalled when a note block is being played through player interaction or a redstone current.classRepresents an event triggered when a new cursor is created by aSculkCatalyst.classCalled when a sign is changed by a player.classCalled when a sponge absorbs water from the world.classCalled when a block of TNT in the world become primed. -
Uses of Event in org.bukkit.event.enchantment
Subclasses of Event in org.bukkit.event.enchantmentModifier and TypeClassDescriptionclassCalled when an ItemStack is successfully enchanted (currently at enchantment table)classCalled 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.entityModifier and TypeClassDescriptionclassCalled when a lingering potion applies it's effects.classCalled when an arrow enters or exists an entity's body.classCalled when a bat attempts to sleep or wake up from its slumber.classCalled when a creature is spawned into a world.classCalled when a Creeper is struck by lightning.classCalled when an EnderDragon switches controller phase.classCalled when the amount of air an entity has remaining changes.classCalled when anEntitybreaks a doorclassCalled when one Entity breeds with another Entity.classCalled when any Entity changes a block and a more specific event is not available.classCalled when a block causes an entity to combust.classCalled when an entity causes another entity to combust.classCalled when an entity combusts.classDeprecated.classCalled when an entity is damaged by a blockclassCalled when an entity is damaged by an entityclassStores data for damage eventsclassThrown whenever a LivingEntity diesclassCalled when an entity stops riding another entity.classThrown when an entity creates an item drop.classCalled when anEntityenters a block and is stored in that block.classCalled when an entity enters love mode.classRepresents an Entity-related eventclassCalled when a human entity experiences exhaustion.classCalled when an entity explodesclassCalled when an entity interacts with an objectclassCalled when an entity receives knockback from another entity.classCalled when a living entity receives knockback.classCalled when an entity attempts to ride another entity.classThrown when a entity picks an item up from the groundclassTriggered when a entity is created in the world by a player "placing" an item on a block.classCalled when an entity comes into contact with a portalclassCalled when a non-player entity is about to teleport because it is in contact with a portal.classCalled before an entity exits a portal.classCalled when an entity changes its pose.classCalled when a potion effect is modified on an entity.classStores data for health-regain eventsclassCalled when anEntityis removed.classCalled when an entity dies and may have the opportunity to be resurrected.classCalled when a LivingEntity shoots a bow firing an arrowclassCalled when an entity is spawned into a world.classCalled when aSpellcastercasts a spell.classThrown when a LivingEntity is tamedclassCalled when a creature targets or untargets another entityclassCalled when an Entity targets aLivingEntityand can only target LivingEntity's.classThrown when a non-player entity is teleported from one location to another.classSent when an entity's gliding status is toggled with an Elytra.classSent when an entity's swimming status is toggled.classCalled when an entity is about to be replaced by another entity.classCalled immediately prior to an entity being unleashed.classCalled when a ThrownExpBottle hits and releases experience.classCalled when an entity has made a decision to explode.classCalled when a firework explodes.classCalled when a human entity's food level changesclassCalled when a horse jumps.classThis event is called when aItemis removed from the world because it has existed for 5 minutes.classclassCalled when an item is spawned into a worldclassCalled when a splash potion hits an areaclassStores all data related to the bartering interaction with a piglin.classStores data for pigs being zappedclassCalled when a Pig Zombie is angered by another entity.classThrown whenever aPlayerdiesclassCalled immediately prior to a creature being leashed by a player.classCalled when a splash potion hits an areaclassCalled when a projectile hits an objectclassCalled when a projectile is launched.classCalled when a sheep's wool is dyedclassCalled when a sheep regrows its woolclassCalled when a Slime splits into smaller Slimes upon deathclassCalled when an entity is spawned into a world by a spawner.classCalled when aStrider's temperature has changed as a result of entering or exiting blocks it considers warm.classCalled whenever a villager acquires a new trade.classclassCalled when aVillageris about to restock one of its trades. -
Uses of Event in org.bukkit.event.hanging
Subclasses of Event in org.bukkit.event.hangingModifier and TypeClassDescriptionclassTriggered when a hanging entity is removed by an entityclassTriggered when a hanging entity is removedclassRepresents a hanging entity-related event.classTriggered when a hanging entity is created in the world -
Uses of Event in org.bukkit.event.inventory
Subclasses of Event in org.bukkit.event.inventoryModifier and TypeClassDescriptionclassCalled when the brewing of the contents inside the Brewing Stand is complete.classCalled when an ItemStack is about to increase the fuel level of a brewing stand.classCalled when the recipe of an Item is completed inside a crafting matrix.classCalled when an ItemStack is successfully burned as fuel in a furnace.classThis event is called when a player takes items out of the furnaceclassCalled when an ItemStack is successfully smelted in a furnace.classCalled when a Furnace starts smelting.classEvent that gets called each time a Hopper attempts to find its source/attached containers.classThis event is called when a player clicks in an inventory.classRepresents a player related inventory eventclassThis 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.classThis event is called when the player drags an item in their cursor across the inventory.classRepresents a player related inventory eventclassAn abstract base class for events that describe an interaction between a HumanEntity and the contents of an Inventory.classCalled when some entity or block (e.g.classRepresents a player related inventory eventclassCalled when a hopper or hopper minecart picks up a dropped item.classCalled when an item is put in a slot for repair by an anvil.classCalled when an item is put in a slot for repair or unenchanting in a grindstone.classCalled when an item is put in a slot and the result is calculated.classclassCalled when an item is put in a slot for upgrade by a Smithing Table.classCalled when the recipe of an Item is completed inside a smithing table.classThis 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.playerModifier and TypeClassDescriptionclassThis event will sometimes fire synchronously, depending on how it was triggered.classDeprecated.chat previews have been removedclassStores details for players attempting to log in.classCalled when a player has completed all criteria in an advancement.classRepresents a player animation eventclassCalled when a player interacts with an armor stand and will either swap, retrieve or place an item.classThis event is fired when the player is almost about to enter the bed.classThis event is fired when the player is leaving a bed.classCalled when a player empties a bucketclassThis event is called whenever a player captures an entity in a bucket.classCalled when a player interacts with a BucketclassCalled when a player fills a bucketclassDeprecated.Use the more genericPlayerBucketEntityEventclassCalled when a player changes their main hand in the client settings.classCalled when a player switches to another world.classThis event is called after a player registers or unregisters a new plugin channel.classDeprecated.This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent.classDeprecated.This event is no longer fired due to client changesclassThis event is called whenever a player runs a command (by placing a slash at the start of their message).classThis event is called when the list of available server commands is sent to the player.classThrown when a player drops an item from their inventoryclassCalled when a player edits or signs a book and quill item.classCalled when a player throws an egg and it might hatchclassRepresents a player related eventclassCalled when a players experience changes naturallyclassCalled when a player's experience cooldown changes.classThrown when a player is fishingclassCalled when the GameMode of the player is changed.classThis event is called whenever a player harvests a block.classCalled when a visible entity is hidden from a player.classRepresents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked.classRepresents an event that is called when a player right clicks an entity.classRepresents an event that is called when a player interacts with an object or air, potentially fired once for each hand.classFired when a player's item breaks (such as a shovel or flint and steel).classThis event will fire when a player is finishing consuming an item (food, potion, milk bucket).classCalled when an item used by the player takes durability damage as a result of being used.classFired when a player changes their currently held itemclassRepresents when a player has an item repaired via the Mending enchantment.classCalled when a player joins a serverclassCalled when a player gets kicked from the serverclassCalled when a players level changesclassCalled when a player changes their locale in the client settings.classStores details for players attempting to log in.classHolds information for player movement eventsclassThrown when a player picks up an arrow from the ground.classDeprecated.classCalled when a player is about to teleport because it is in contact with a portal which will generate an exit portal.classDeprecated.This event causes synchronization from the login thread;AsyncPlayerPreLoginEventis preferred to keep the secondary threads asynchronous.classCalled when a player leaves a serverclassCalled when a player clicks a recipe in the recipe book.classCalled when a player changes recipe book settings.classCalled when a player discovers a new recipe in the recipe book.classThis is called immediately after a player registers for a plugin channel.classCalled when a player takes action on a resource pack request sent viaPlayer.setResourcePack(java.lang.String).classCalled when a player respawns.classThis event is fired when the player activates the riptide enchantment, using their trident to propel them through the air.classCalled when a player shears an entityclassCalled when a hidden entity is shown to a player.classThis event is fired when a sign is opened by the player.classThis event is fired when the spawn point of the player is changed.classCalled when a player statistic is incremented.classCalled when a player swap items between main hand and off hand using the hotkey.classThis event is called when a player clicks the button to take a book of a Lectern.classHolds information for player teleport eventsclassCalled when a player toggles their flying stateclassCalled when a player toggles their sneaking stateclassCalled when a player toggles their sprinting stateclassCalled prior to an entity being unleashed due to a player's action.classThis is called immediately after a player unregisters for a plugin channel.classCalled when the velocity of a player changes. -
Uses of Event in org.bukkit.event.raid
Subclasses of Event in org.bukkit.event.raidModifier and TypeClassDescriptionclassRepresents events related to raids.classThis event is called when aRaidwas complete with a clear result.classCalled when a raid wave spawns.classCalled when aRaidis stopped.classCalled when aRaidis 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.serverModifier and TypeClassDescriptionclassEvent triggered for server broadcast messages such as fromServer.broadcast(String, String).classCalled when a map is initialized.classCalled when a plugin is disabled.classCalled when a plugin is enabled.classUsed for plugin enable and disable eventsclassThis event is called when a command is received over RCON.classThis event is called when a command is run by a non-player.classMiscellaneous server eventsclassCalled when a server list ping is coming in.classThis event is called when either the server startup or reload has completed.classAn event relating to a registered service.classThis event is called when a service is registered.classThis event is called when a service is unregistered.classCalled when aCommandSenderof 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.vehicleModifier and TypeClassDescriptionclassRaised when a vehicle collides with a block.classRaised when a vehicle collides.classRaised when a vehicle is created.classRaised when a vehicle receives damage.classRaised when a vehicle is destroyed, which could be caused by either a player or the environment.classRaised when an entity enters a vehicle.classRaised when a vehicle collides with an entity.classRepresents a vehicle-related event.classRaised when a living entity exits a vehicle.classRaised when a vehicle moves.classCalled when a vehicle updates -
Uses of Event in org.bukkit.event.weather
Subclasses of Event in org.bukkit.event.weatherModifier and TypeClassDescriptionclassStores data for lightning strikingclassStores data for thunder state changing in a worldclassStores data for weather changing in a worldclassRepresents a Weather-related event -
Uses of Event in org.bukkit.event.world
Subclasses of Event in org.bukkit.event.worldModifier and TypeClassDescriptionclassThis event will sometimes fire synchronously, depending on how it was triggered.classCalled when aStructureis naturally generated in the world.classRepresents a Chunk related eventclassCalled when a chunk is loadedclassThrown when a newly generated chunk has finished being populated.classCalled when a chunk is unloadedclassCalled when entities are loaded.classCalled when entities are unloaded.classRepresents a generic Mojang game event.classCalled when aLootTableis generated in the world for anInventoryHolder.classCalled when a portal is createdclassAn event that is called when a world's spawn changes.classEvent that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.classCalled when the time skips in a world.classRepresents events within a worldclassCalled when a World is initializing.classCalled when a World is loadedclassCalled when a World is saved.classCalled when a World is unloaded -
Uses of Event in org.bukkit.plugin
Methods in org.bukkit.plugin that return types with arguments of type EventModifier and TypeMethodDescriptionMap<Class<? extends Event>, Set<RegisteredListener>> PluginLoader.createRegisteredListeners(Listener listener, Plugin plugin) Creates and returns registered listeners for the event classes used in this listenerTimedRegisteredListener.getEventClass()Gets the class of the events this listener handled.Methods in org.bukkit.plugin with parameters of type EventModifier and TypeMethodDescriptionvoidCalls an event with the given detailsvoidCalls the event executorvoidCalls an event with the given details.voidvoidMethod parameters in org.bukkit.plugin with type arguments of type EventModifier and TypeMethodDescriptionvoidPluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin) Registers the specified executor to the given event classvoidPluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled) Registers the specified executor to the given event classvoidSimplePluginManager.registerEvent(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin) voidSimplePluginManager.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 EventModifier and TypeMethodDescriptionMap<Class<? extends Event>, Set<RegisteredListener>> JavaPluginLoader.createRegisteredListeners(Listener listener, Plugin plugin) -
Uses of Event in org.spigotmc.event.player
Subclasses of Event in org.spigotmc.event.playerModifier and TypeClassDescriptionclassCalled when player is about to spawn in a world after joining the server.
PortalCreateEvent