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.-
Uses of Cancellable in com.destroystokyo.paper.event.block
Modifier and TypeClassDescriptionclass
Called when an anvil is damaged from being usedclass
Called when a beacon effect is being applied to a player.class
Fired anytime the server intends to 'destroy' a block through some triggering reason.class
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Cancellable in com.destroystokyo.paper.event.brigadier
Modifier and TypeClassDescriptionclass
Called when sendingSuggestions
to the client.class
Deprecated.For removal, use the new brigadier api. -
Uses of Cancellable in com.destroystokyo.paper.event.entity
Modifier and TypeClassDescriptionclass
Called when a Creeper is ignited either by a flint and steel,Creeper.ignite()
orCreeper.setIgnited(boolean)
.class
Fired when a DragonFireball collides with a block/entity and spawns an AreaEffectCloudclass
Fired when an EnderDragon spawns an AreaEffectCloud by shooting flamesclass
Fired when an EnderDragon shoots a fireballclass
Fired when an Enderman determines if it should attack a player or not.class
class
Called when an entity jumpsclass
Fired when an Entity is knocked back by the hit of another Entity.class
Fired when an Entity decides to start moving towards a location.class
Fired any time an entity attempts to teleport in an end gatewayclass
Deprecated, for removal: This API element is subject to removal in a future version.Bukkit has addedEntityTransformEvent
, you should start using thatclass
Fired when lightning strikes an entityclass
Fired anytime the server is about to merge 2 experience orbs into oneclass
Called when a phantom is spawned for an exhausted playerclass
Fired when the server is calculating what chunks to try to spawn monsters in every Monster Spawn Tick eventclass
WARNING: This event only fires for a limited number of cases, and not for every case thatCreatureSpawnEvent
does.class
Called before an entity is spawned into a world by a spawner.class
Deprecated.Deprecated, useProjectileHitEvent
and check if there is a hit entityclass
Event called when a player gets close to a skeleton horse and triggers the lightning trapclass
Fired when a Slime decides to change its facing direction.class
Fired when a Slime decides to start pathfinding.class
Fired when a Slime decides to start jumping while swimming in water/lava.class
Fired when a Slime decides to change direction to target a LivingEntity.class
Fired when a Slime decides to start wandering.class
Fired when a Turtle decides to go homeclass
Fired when a Turtle lays eggsclass
Fired when a Turtle starts digging to lay eggsclass
Fired when a witch consumes the potion in their hand to buff themselves.class
class
Fired when a witch throws a potion at a player -
Uses of Cancellable in com.destroystokyo.paper.event.player
Modifier and TypeClassDescriptionclass
Called after a player is granted a criteria in an advancement.class
Called when processing a player's attack on an entity when the player's attack strength cooldown is resetclass
Fired when a player boosts elytra flight with a fireworkclass
This event is fired during a player handshake.class
Called when the server detects the player is jumping.class
Called when a player shoots a projectile.class
Fired when a player is attempting to pick up an experience orbclass
Called when a player is firing a bow and the server is choosing an arrow to use.class
Called when a player clicks a recipe in the recipe bookclass
Called when a player's spawn is set, either by themselves or otherwise.class
Triggered when a player starts spectating an entity in spectator mode.class
Triggered when a player stops spectating an entity in spectator mode.class
Fired when a teleport is triggered for an End Gateway -
Uses of Cancellable in com.destroystokyo.paper.event.server
Modifier and TypeClassDescriptionclass
Allows plugins to compute tab completion results asynchronously.class
Extended version ofServerListPingEvent
that allows full control of the response sent to the client. -
Uses of Cancellable in com.destroystokyo.paper.loottable
-
Uses of Cancellable in io.papermc.paper.event.block
Modifier and TypeClassDescriptionclass
Deprecated.class
Deprecated.useBellRingEvent
class
class
Called when theEnderDragon
is defeated (killed) in aDragonBattle
, causing aMaterial.DRAGON_EGG
(more formally:BlockGrowEvent.getNewState()
) to possibly appear depending onBlockGrowEvent.isCancelled()
.class
Called when a player uses sheers on a block.class
Called when a Target Block is hit by a projectile. -
Uses of Cancellable in io.papermc.paper.event.entity
Modifier and TypeClassDescriptionclass
Is called when anElderGuardian
appears in front of aPlayer
.class
Called when an item is about to be composted by an entity.class
Called when an item on or used by an entity takes durability damage as a result of being hit/used.class
Called when an entity is dyed.class
Called when two entities mate and the mating process results in a fertilization.class
Called when an entity enters the hitbox of a block.class
Called when an entity receives knockback.class
Called when a LivingEntity loads a crossbow with a projectile.class
Holds information for living entity movement eventsclass
Called when an entity is ready to be teleported by a plugin.class
Fired when an entity is pushed by another entity's attack.class
Is called when an entity sits down or stands up.class
Called just before aPufferFish
inflates or deflates.class
Fired when a shulker duplicates itself by spawning a new shulker.class
Called when aTameable
dies and sends a death message.class
Called when a Warden's anger level has changed due to another entity.class
Called when a splash water potion "splashes" and affects different entities in different ways. -
Uses of Cancellable in io.papermc.paper.event.player
Modifier and TypeClassDescriptionclass
An abstract implementation of a chat event, handling shared logic.class
class
This event is fired when the server decorates a component for chat purposes.final class
An event fired when aPlayer
sends a chat message to the server.class
Called when the recipe of an Item is completed inside a cartography table.final class
Deprecated.Listening to this event forces chat to wait for the main thread, delaying chat messages.class
class
class
Called when a player sets the effect for a beaconclass
Called when a player has slept long enough to count as passing the night/storm.class
Called when a player places an item in or takes an item out of a flowerpot.class
Fired when a player receives an item cooldown.class
Called when anItemFrame
is having an item rotated, added, or removed from it.class
class
Called when a player selects a banner patten in a loom inventory.class
Called when the player is attempting to rename a mobclass
Called when a player begins editing a sign's text.class
Event that is fired when a player uses the pick item functionality (middle-clicking a block to get the appropriate item).class
Called when a player trades with a standalone merchant GUI.class
Called whenever a players shield is disabled due to an attack from another entity that was capable of disabling the shield.class
Called when aPlayer
clicks a side on a sign that causes a command to run.class
class
class
Called when a player trades with a villager or wandering traderclass
Called when the player tries to attack an entity. -
Uses of Cancellable in io.papermc.paper.event.server
Modifier and TypeClassDescriptionclass
This event gets called when the whitelist status of a player is changed -
Uses of Cancellable in io.papermc.paper.event.world
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.no longer used, seeStructuresLocateEvent
class
Called before a set of configured structures is located.class
Called when a world's gamerule is changed, either by command or by api. -
Uses of Cancellable in io.papermc.paper.event.world.border
Modifier and TypeClassDescriptionclass
Called when a world border changes its bounds, either over time, or instantly.class
Called when a world border's center is changed. -
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 after a block is broken by a player and potential drops are computed, even if said blocks loot table does not define any drops at the point the event is constructed.class
Called when a block explodes.class
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
Represents an event triggered when a new cursor is created by aSculkCatalyst
.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 its 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 whenever a LivingEntity diesclass
Called when an entity stops riding another entity.class
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 explodes interacting with blocks.class
Called when an entity interacts with an objectclass
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Called when an entity attempts to ride another entity.class
Thrown when an entity picks an item up from the groundclass
Triggered when an 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 immediately prior to an entity being unleashed.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
Thrown whenever aPlayer
diesclass
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-like block such as aFurnace
,Smoker
, orBlastFurnace
.class
Called when an ItemStack is successfully smelted in a furnace-like block such as aFurnace
,Smoker
, orBlastFurnace
.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
Called when a player opens an inventoryclass
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
Deprecated.useAsyncChatEvent
insteadclass
Deprecated.chat previews have been removedclass
Represents a player animation event
UsePlayerArmSwingEvent
for determining which arm was swung.class
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.class
Thrown when a player attempts to pick an item up from the groundclass
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.Listening to this event forces chat to wait for the main thread, delaying chat messages.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
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.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(net.kyori.adventure.text.Component)
(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
TNTPrimeEvent