Uses of Interface
org.bukkit.event.Cancellable
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.Spigot-specific entity events.
-
Uses of Cancellable in org.bukkit.event.block
Modifier and TypeClassDescriptionclass
Called when a bell is being rung.class
Called when a block is broken by a player.class
Called when a block is destroyed as a result of being burnt by fire.class
Called when an ItemStack is successfully cooked in a block.class
Called when a block is damaged by a player.class
Called when an equippable item is dispensed from a block and equipped on a nearby entity.class
Called when an item is dispensed from a block.class
Called if a block broken by a player drops an item.class
Called when a block explodesclass
Called when a block fades, melts or disappears based on world conditionsclass
Called with the block changes resulting from a player fertilizing a given block with bonemeal.class
Called when a block is formed or spreads based on world conditions.class
Represents events with a source block and a destination block, currently only applies to liquid (lava and water) and teleporting dragon eggs.class
Called when a block grows naturally in the world.class
Called when a block is ignited.class
Fired when a single block placement action of a player triggers the creation of multiple blocks(e.g.class
Thrown when a block physics check is called.class
Called when a piston block is triggeredclass
Called when a piston extendsclass
Called when a piston retractsclass
Called when a block is placed by a player.class
Called when a Sculk sensor receives a game event and hence might activate.class
Event fired when a dispenser shears a nearby sheep.class
Called when a block spreads based on world conditions.class
class
Called when a block is formed by entities.class
Called when the fluid level of a block changes due to changes in adjacent blocks.class
Called when leaves are decaying naturally.class
Called when the moisture level of a soil block changes.class
Called when a note block is being played through player interaction or a redstone current.class
Called when a sign is changed by a player.class
Called when a sponge absorbs water from the world.class
Called when a block of TNT in the world become primed. -
Uses of Cancellable in org.bukkit.event.enchantment
Modifier and TypeClassDescriptionclass
Called when an ItemStack is successfully enchanted (currently at enchantment table)class
Called when an ItemStack is inserted in an enchantment table - can be called multiple times -
Uses of Cancellable in org.bukkit.event.entity
Modifier and TypeClassDescriptionclass
Called when a lingering potion applies it's effects.class
Called when an arrow enters or exists an entity's body.class
Called when a bat attempts to sleep or wake up from its slumber.class
Called when a creature is spawned into a world.class
Called when a Creeper is struck by lightning.class
Called when an EnderDragon switches controller phase.class
Called when the amount of air an entity has remaining changes.class
Called when anEntity
breaks a doorclass
Called when one Entity breeds with another Entity.class
Called when any Entity changes a block and a more specific event is not available.class
Called when a block causes an entity to combust.class
Called when an entity causes another entity to combust.class
Called when an entity combusts.class
Deprecated.class
Called when an entity is damaged by a blockclass
Called when an entity is damaged by an entityclass
Stores data for damage eventsclass
Thrown when an entity creates an item drop.class
Called when anEntity
enters a block and is stored in that block.class
Called when an entity enters love mode.class
Called when a human entity experiences exhaustion.class
Called when an entity explodesclass
Called when an entity interacts with an objectclass
Thrown when a entity picks an item up from the groundclass
Triggered when a entity is created in the world by a player "placing" an item on a block.class
Called when a non-player entity is about to teleport because it is in contact with a portal.class
Called before an entity exits a portal.class
Called when a potion effect is modified on an entity.class
Stores data for health-regain eventsclass
Called when an entity dies and may have the opportunity to be resurrected.class
Called when a LivingEntity shoots a bow firing an arrowclass
Called when an entity is spawned into a world.class
Called when aSpellcaster
casts a spell.class
Thrown when a LivingEntity is tamedclass
Called when a creature targets or untargets another entityclass
Called when an Entity targets aLivingEntity
and can only target LivingEntity's.class
Thrown when a non-player entity is teleported from one location to another.class
Sent when an entity's gliding status is toggled with an Elytra.class
Sent when an entity's swimming status is toggled.class
Called when an entity is about to be replaced by another entity.class
Called when a ThrownExpBottle hits and releases experience.class
Called when an entity has made a decision to explode.class
Called when a firework explodes.class
Called when a human entity's food level changesclass
Called when a horse jumps.class
This event is called when aItem
is removed from the world because it has existed for 5 minutes.class
class
Called when an item is spawned into a worldclass
Called when a splash potion hits an areaclass
Stores all data related to the bartering interaction with a piglin.class
Stores data for pigs being zappedclass
Called when a Pig Zombie is angered by another entity.class
Called immediately prior to a creature being leashed by a player.class
Called when a splash potion hits an areaclass
Called when a projectile hits an objectclass
Called when a projectile is launched.class
Called when a sheep's wool is dyedclass
Called when a sheep regrows its woolclass
Called when a Slime splits into smaller Slimes upon deathclass
Called when an entity is spawned into a world by a spawner.class
Called when aStrider
's temperature has changed as a result of entering or exiting blocks it considers warm.class
Called whenever a villager acquires a new trade.class
class
Called when aVillager
is about to restock one of its trades. -
Uses of Cancellable in org.bukkit.event.hanging
Modifier and TypeClassDescriptionclass
Triggered when a hanging entity is removed by an entityclass
Triggered when a hanging entity is removedclass
Triggered when a hanging entity is created in the world -
Uses of Cancellable in org.bukkit.event.inventory
Modifier and TypeClassDescriptionclass
Called when the brewing of the contents inside the Brewing Stand is complete.class
Called when an ItemStack is about to increase the fuel level of a brewing stand.class
Called when the recipe of an Item is completed inside a crafting matrix.class
Called when an ItemStack is successfully burned as fuel in a furnace.class
Called when an ItemStack is successfully smelted in a furnace.class
This event is called when a player clicks in an inventory.class
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
This event is called when the player drags an item in their cursor across the inventory.class
An abstract base class for events that describe an interaction between a HumanEntity and the contents of an Inventory.class
Called when some entity or block (e.g.class
Represents a player related inventory eventclass
Called when a hopper or hopper minecart picks up a dropped item.class
Called when the recipe of an Item is completed inside a smithing table.class
This event is called whenever a player clicks a new trade on the trades sidebar. -
Uses of Cancellable in org.bukkit.event.player
Modifier and TypeClassDescriptionclass
This event will sometimes fire synchronously, depending on how it was triggered.class
Deprecated.chat previews have been removedclass
Represents a player animation eventclass
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.class
This event is fired when the player is almost about to enter the bed.class
This event is fired when the player is leaving a bed.class
Called when a player empties a bucketclass
This event is called whenever a player captures an entity in a bucket.class
Called when a player interacts with a Bucketclass
Called when a player fills a bucketclass
Deprecated.Use the more genericPlayerBucketEntityEvent
class
Deprecated.This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent
.class
This event is called whenever a player runs a command (by placing a slash at the start of their message).class
Thrown when a player drops an item from their inventoryclass
Called when a player edits or signs a book and quill item.class
Thrown when a player is fishingclass
Called when the GameMode of the player is changed.class
This event is called whenever a player harvests a block.class
Represents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked.class
Represents an event that is called when a player right clicks an entity.class
Represents an event that is called when a player interacts with an object or air, potentially fired once for each hand.class
This event will fire when a player is finishing consuming an item (food, potion, milk bucket).class
Called when an item used by the player takes durability damage as a result of being used.class
Fired when a player changes their currently held itemclass
Represents when a player has an item repaired via the Mending enchantment.class
Called when a player gets kicked from the serverclass
Holds information for player movement eventsclass
Thrown when a player picks up an arrow from the ground.class
Deprecated.class
Called when a player is about to teleport because it is in contact with a portal which will generate an exit portal.class
Called when a player discovers a new recipe in the recipe book.class
Called when a player shears an entityclass
This event is fired when the spawn point of the player is changed.class
Called when a player statistic is incremented.class
Called when a player swap items between main hand and off hand using the hotkey.class
This event is called when a player clicks the button to take a book of a Lectern.class
Holds information for player teleport eventsclass
Called when a player toggles their flying stateclass
Called when a player toggles their sneaking stateclass
Called when a player toggles their sprinting stateclass
Called prior to an entity being unleashed due to a player's action.class
Called when the velocity of a player changes. -
Uses of Cancellable in org.bukkit.event.raid
Modifier and TypeClassDescriptionclass
Called when aRaid
is triggered (e.g: a player with Bad Omen effect enters a village). -
Uses of Cancellable in org.bukkit.event.server
Modifier and TypeClassDescriptionclass
Event triggered for server broadcast messages such as fromServer.broadcast(String, String)
.class
This event is called when a command is received over RCON.class
This event is called when a command is run by a non-player.class
Called when aCommandSender
of any description (ie: player or console) attempts to tab complete. -
Uses of Cancellable in org.bukkit.event.vehicle
Modifier and TypeClassDescriptionclass
Raised when a vehicle is created.class
Raised when a vehicle receives damage.class
Raised when a vehicle is destroyed, which could be caused by either a player or the environment.class
Raised when an entity enters a vehicle.class
Raised when a vehicle collides with an entity.class
Raised when a living entity exits a vehicle. -
Uses of Cancellable in org.bukkit.event.weather
Modifier and TypeClassDescriptionclass
Stores data for lightning strikingclass
Stores data for thunder state changing in a worldclass
Stores data for weather changing in a world -
Uses of Cancellable in org.bukkit.event.world
Modifier and TypeClassDescriptionclass
Called when aStructure
is naturally generated in the world.class
Represents a generic Mojang game event.class
Called when aLootTable
is generated in the world for anInventoryHolder
.class
Called when a portal is createdclass
Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.class
Called when the time skips in a world.class
Called when a World is unloaded -
Uses of Cancellable in org.spigotmc.event.entity
Modifier and TypeClassDescriptionclass
Called when an entity stops riding another entity.class
Called when an entity attempts to ride another entity.
PortalCreateEvent