Uses of Interface
org.bukkit.event.Cancellable
Packages that use 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 com.destroystokyo.paper.event.block
Classes in com.destroystokyo.paper.event.block that implement CancellableModifier and TypeClassDescriptionclassCalled when an anvil is damaged from being usedclassCalled when a beacon effect is being applied to a player.classFired anytime the server intends to 'destroy' a block through some triggering reason.classCalled when TNT block is about to turn intoTNTPrimed -
Uses of Cancellable in com.destroystokyo.paper.event.entity
Classes in com.destroystokyo.paper.event.entity that implement CancellableModifier and TypeClassDescriptionclassCalled when a Creeper is ignite flag is changed (armed/disarmed to explode).classFired when a DragonFireball collides with a block/entity and spawns an AreaEffectCloudclassFired when an EnderDragon spawns an AreaEffectCloud by shooting flamesclassFired when an EnderDragon shoots a fireballclassFired when an Enderman determines if it should attack a player or not.classclassCalled when an entity jumpsclassFired when an Entity is knocked back by the hit of another Entity.classFired when an Entity decides to start moving towards a location.classFired any time an entity attempts to teleport in an end gatewayclassDeprecated.classFired when lightning strikes an entityclassFired anytime the server is about to merge 2 experience orbs into oneclassCalled when a phantom is spawned for an exhausted playerclassFired when the server is calculating what chunks to try to spawn monsters in every Monster Spawn Tick eventclassWARNING: This event only fires for a limited number of cases, and not for every case that CreatureSpawnEvent does.classCalled before an entity is spawned into a world by a spawner.classCalled when an projectile collides with an entityclassEvent called when a player gets close to a skeleton horse and triggers the lightning trapclassFired when a Slime decides to change it's facing direction.classFired when a Slime decides to start pathfinding.classFired when a Slime decides to start jumping while swimming in water/lava.classFired when a Slime decides to change direction to target a LivingEntity.classFired when a Slime decides to start wandering.classFired when a Turtle decides to go homeclassFired when a Turtle lays eggsclassFired when a Turtle starts digging to lay eggsclassFired when a witch consumes the potion in their hand to buff themselves.classclassFired when a witch throws a potion at a player -
Uses of Cancellable in com.destroystokyo.paper.event.player
Classes in com.destroystokyo.paper.event.player that implement CancellableModifier and TypeClassDescriptionclassCalled when a player is granted a criteria in an advancement.classCalled when processing a player's attack on an entity when the player's attack strength cooldown is resetclassFired when a player boosts elytra flight with a fireworkclassThis event is fired during a player handshake.classCalled when the server detects the player is jumping.classCalled when a player shoots a projectileclassFired when a player is attempting to pick up an experience orbclassCalled when a player is firing a bow and the server is choosing an arrow to use.classCalled when a player clicks a recipe in the recipe bookclassCalled when a player's spawn is set, either by themselves or otherwise.
Cancelling this event will prevent the spawn from being set.classTriggered when a player starts spectating an entity in spectator mode.classTriggered when a player stops spectating an entity in spectator mode.classFired when a teleport is triggered for an End Gateway -
Uses of Cancellable in com.destroystokyo.paper.event.server
Classes in com.destroystokyo.paper.event.server that implement CancellableModifier and TypeClassDescriptionclassAllows plugins to compute tab completion results asynchronously.classExtended version ofServerListPingEventthat allows full control of the response sent to the client. -
Uses of Cancellable in com.destroystokyo.paper.loottable
Classes in com.destroystokyo.paper.loottable that implement Cancellable -
Uses of Cancellable in io.papermc.paper.event.block
Classes in io.papermc.paper.event.block that implement CancellableModifier and TypeClassDescriptionclassCalled when aRaideris revealed by a bell.classCalled when a bell is rung.classclassCalled when theEnderDragonis defeated (killed) in aDragonBattle, causing aMaterial.DRAGON_EGG(more formally:BlockGrowEvent.getNewState()) to possibly appear depending onDragonEggFormEvent.isCancelled().classCalled when a player uses sheers on a block.classCalled when a Target Block is hit by a projectile. -
Uses of Cancellable in io.papermc.paper.event.entity
Classes in io.papermc.paper.event.entity that implement CancellableModifier and TypeClassDescriptionclassIs called when anElderGuardianappears in front of aPlayer.classCalled when an item on or used by an entity takes durability damage as a result of being hit/used.classCalled when an entity is dyed.classCalled when an entity enters the hitbox of a block.classCalled when a LivingEntity loads a crossbow with a projectile.classHolds information for living entity movement eventsclassCalled when an entity is ready to be teleported by a plugin.classCalled just before aPufferFishinflates or deflates.classCalled when aTameabledies and sends a death message.classCalled when a Warden's anger level has changed due to another entity. -
Uses of Cancellable in io.papermc.paper.event.player
Classes in io.papermc.paper.event.player that implement CancellableModifier and TypeClassDescriptionclassAn abstract implementation of a chat event, handling shared logic.final classAn event fired when aPlayersends a chat message to the server.final classDeprecated.Listening to this event forces chat to wait for the main thread, delaying chat messages.classclassclassCalled when a player sets the effect for a beaconclassCalled when a player has slept long enough to count as passing the night/storm.classCalled when a player places an item in or takes an item out of a flowerpot.classFired when a player receives an item cooldown.classCalled when anItemFrameis having an item rotated, added, or removed from it.classclassCalled when a player selects a banner patten in a loom inventory.classCalled when the player is attempting to rename a mobclassCalled when a player trades with a standalone merchant GUI.classCalled when aPlayerclicks a sign that causes a command to run.classclassCalled when a player trades with a villager or wandering trader -
Uses of Cancellable in io.papermc.paper.event.world
Classes in io.papermc.paper.event.world that implement CancellableModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.no longer used, seeStructuresLocateEventclassCalled before a set of configured structures is located.classCalled when a world's gamerule is changed, either by command or by api. -
Uses of Cancellable in io.papermc.paper.event.world.border
Classes in io.papermc.paper.event.world.border that implement CancellableModifier and TypeClassDescriptionclassCalled when a world border changes its bounds, either over time, or instantly.classCalled when a world border's center is changed. -
Uses of Cancellable in org.bukkit.event.block
Classes in org.bukkit.event.block that implement CancellableModifier and TypeClassDescriptionclassCalled when a block is broken by a player.classCalled when a block is destroyed as a result of being burnt by fire.classCalled when an ItemStack is successfully cooked in 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.classCalled when a block explodesclassCalled 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.classEvent fired when a dispenser shears a nearby sheep.classCalled when a block spreads based on world conditions.classclassCalled when a block is formed by entities.classCalled when the fluid level of a block changes due to changes in adjacent blocks.classCalled 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.classCalled when a sign is changed by a player.classCalled when a sponge absorbs water from the world. -
Uses of Cancellable in org.bukkit.event.enchantment
Classes in org.bukkit.event.enchantment that implement CancellableModifier 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 Cancellable in org.bukkit.event.entity
Classes in org.bukkit.event.entity that implement CancellableModifier 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 diesclassThrown 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.classCalled when a human entity experiences exhaustion.classCalled when an entity explodesclassCalled when an entity interacts with an objectclassThrown 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 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 a potion effect is modified on an entity.classStores data for health-regain eventsclassCalled 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 Cancellable in org.bukkit.event.hanging
Classes in org.bukkit.event.hanging that implement CancellableModifier and TypeClassDescriptionclassTriggered when a hanging entity is removed by an entityclassTriggered when a hanging entity is removedclassTriggered when a hanging entity is created in the world -
Uses of Cancellable in org.bukkit.event.inventory
Classes in org.bukkit.event.inventory that implement CancellableModifier 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.classCalled when an ItemStack is successfully smelted in a furnace.classThis event is called when a player clicks in an inventory.classThis 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.classAn 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 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 Cancellable in org.bukkit.event.player
Classes in org.bukkit.event.player that implement CancellableModifier and TypeClassDescriptionclassDeprecated.useAsyncChatEventinsteadclassRepresents a player animation event
UsePlayerArmSwingEventfor determining which arm was swung.classCalled when a player interacts with an armor stand and will either swap, retrieve or place an item.classThrown when a player attempts to pick an item up from the groundclassThis 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 genericPlayerBucketEntityEventclassDeprecated.This event will fire from the main thread and allows the use of all of the Bukkit API, unlike theAsyncPlayerChatEvent.classThis event is called whenever a player runs a command (by placing a slash at the start of their message).classThrown when a player drops an item from their inventoryclassCalled when a player edits or signs a book and quill item.classThrown when a player is fishingclassCalled when the GameMode of the player is changed.classThis event is called whenever a player harvests a block.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.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 gets kicked from the serverclassHolds 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.classCalled when a player discovers a new recipe in the recipe book.classCalled when a player shears an entityclassCalled 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.classCalled when the velocity of a player changes. -
Uses of Cancellable in org.bukkit.event.raid
Classes in org.bukkit.event.raid that implement CancellableModifier and TypeClassDescriptionclassCalled when aRaidis triggered (e.g: a player with Bad Omen effect enters a village). -
Uses of Cancellable in org.bukkit.event.server
Classes in org.bukkit.event.server that implement CancellableModifier and TypeClassDescriptionclassEvent triggered for server broadcast messages such as fromServer.broadcast(String, String).classThis event is called when a command is received over RCON.classThis event is called when a command is run by a non-player.classCalled when aCommandSenderof any description (ie: player or console) attempts to tab complete. -
Uses of Cancellable in org.bukkit.event.vehicle
Classes in org.bukkit.event.vehicle that implement CancellableModifier and TypeClassDescriptionclassRaised 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.classRaised when a living entity exits a vehicle. -
Uses of Cancellable in org.bukkit.event.weather
Classes in org.bukkit.event.weather that implement CancellableModifier and TypeClassDescriptionclassStores data for lightning strikingclassStores data for thunder state changing in a worldclassStores data for weather changing in a world -
Uses of Cancellable in org.bukkit.event.world
Classes in org.bukkit.event.world that implement CancellableModifier and TypeClassDescriptionclassRepresents a generic Mojang game event.classCalled when aLootTableis generated in the world for anInventoryHolder.classCalled when a portal is createdclassEvent 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.classCalled when a World is unloaded -
Uses of Cancellable in org.spigotmc.event.entity
Classes in org.spigotmc.event.entity that implement CancellableModifier and TypeClassDescriptionclassCalled when an entity stops riding another entity.classCalled when an entity attempts to ride another entity.
EntityTransformEvent, you should start using that