Uses of Interface
org.bukkit.event.Cancellable

Packages that use Cancellable
org.bukkit.event.block Events relating to when a block is changed or interacts with the world
org.bukkit.event.enchantment Events triggered from an enchantment table
org.bukkit.event.entity Events relating to entities, excluding some directly referencing some more specific entity types. 
org.bukkit.event.hanging Events relating to entities that hang
org.bukkit.event.inventory Events relating to inventory manipulation. 
org.bukkit.event.painting Events relating to paintings, but deprecated for more general hanging events. 
org.bukkit.event.player Events relating to players
org.bukkit.event.vehicle Events relating to vehicular entities
org.bukkit.event.weather Events relating to weather. 
org.bukkit.event.world Events triggered by various world states or changes. 
 

Uses of Cancellable in org.bukkit.event.block
 

Classes in org.bukkit.event.block that implement Cancellable
 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 BlockDamageEvent
          Called when a block is damaged by a player.
 class BlockDispenseEvent
          Called when an item is dispensed from a block.
 class BlockFadeEvent
          Called when a block fades, melts or disappears based on world conditions

Examples: Snow melting due to being near a light source. Ice melting due to being near a light source.

If a Block Fade event is cancelled, the block will not fade, melt or disappear.

 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 BlockPhysicsEvent
          Thrown when a block physics check is called
 class BlockPistonEvent
           
 class BlockPistonExtendEvent
           
 class BlockPistonRetractEvent
           
 class BlockPlaceEvent
          Called when a block is placed by a player.
 class BlockSpreadEvent
          Called when a block spreads based on world conditions.
 class EntityBlockFormEvent
          Called when a block is formed by entities.
 class LeavesDecayEvent
          Called when leaves are decaying naturally.
 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.
 

Uses of Cancellable in org.bukkit.event.enchantment
 

Classes in org.bukkit.event.enchantment that implement Cancellable
 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 Cancellable in org.bukkit.event.entity
 

Classes in org.bukkit.event.entity that implement Cancellable
 class CreatureSpawnEvent
          Called when a creature is spawned into a world.
 class CreeperPowerEvent
          Called when a Creeper is struck by lightning.
 class EntityBreakDoorEvent
          Called when an Entity breaks a door

Canceling the event will cause the event to be delayed

 class EntityChangeBlockEvent
          Called when any Entity, excluding players, changes a block.
 class EntityCombustByBlockEvent
           
 class EntityCombustByEntityEvent
           
 class EntityCombustEvent
          Called when an entity combusts.
 class EntityCreatePortalEvent
          Thrown when a Living Entity creates a portal in a world.
 class EntityDamageByBlockEvent
          Called when an entity is damaged by a block
 class EntityDamageByEntityEvent
          Called when an entity is damaged by an entity
 class EntityDamageEvent
          Stores data for damage events
 class EntityExplodeEvent
          Called when an entity explodes
 class EntityInteractEvent
          Called when an entity interacts with an object
 class EntityPortalEvent
          Called when a non-player entity is about to teleport because it is in contact with a portal

For players see PlayerPortalEvent

 class EntityPortalExitEvent
          Called before an entity exits a portal.
 class EntityRegainHealthEvent
          Stores data for health-regain events
 class EntityShootBowEvent
          Called when a LivingEntity shoots a bow firing an arrow
 class EntityTameEvent
          Thrown when a LivingEntity is tamed
 class EntityTargetEvent
          Called when a creature targets or untargets another entity
 class EntityTargetLivingEntityEvent
          Called when an Entity targets a LivingEntity and can only target LivingEntity's.
 class EntityTeleportEvent
          Thrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.
 class ExplosionPrimeEvent
          Called when an entity has made a decision to explode.
 class FoodLevelChangeEvent
          Called when a human entity's food level changes
 class ItemDespawnEvent
           
 class ItemSpawnEvent
          Called when an item is spawned into a world
 class PigZapEvent
          Stores data for pigs being zapped
 class PotionSplashEvent
          Called when a splash potion hits an area
 class ProjectileLaunchEvent
          Called when a projectile is launched.
 class SheepDyeWoolEvent
          Called when a sheep's wool is dyed
 class SheepRegrowWoolEvent
          Called when a sheep regrows its wool
 class SlimeSplitEvent
          Called when a Slime splits into smaller Slimes upon death
 

Uses of Cancellable in org.bukkit.event.hanging
 

Classes in org.bukkit.event.hanging that implement Cancellable
 class HangingBreakByEntityEvent
          Triggered when a hanging entity is removed by an entity
 class HangingBreakEvent
          Triggered when a hanging entity is removed
 class HangingPlaceEvent
          Triggered 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 Cancellable
 class BrewEvent
           
 class CraftItemEvent
           
 class FurnaceBurnEvent
          Called when an ItemStack is successfully burned as fuel in a furnace.
 class FurnaceSmeltEvent
          Called when an ItemStack is successfully smelted in a furnace.
 class InventoryClickEvent
           
 class InventoryOpenEvent
          Represents a player related inventory event
 class InventoryPickupItemEvent
          Called when a hopper or hopper minecart picks up a dropped item.
 

Uses of Cancellable in org.bukkit.event.painting
 

Classes in org.bukkit.event.painting that implement Cancellable
 class PaintingBreakByEntityEvent
          Deprecated. Use HangingBreakByEntityEvent instead.
 class PaintingBreakEvent
          Deprecated. Use HangingBreakEvent instead.
 class PaintingPlaceEvent
          Deprecated. Use HangingPlaceEvent instead.
 

Uses of Cancellable in org.bukkit.event.player
 

Classes in org.bukkit.event.player that implement Cancellable
 class AsyncPlayerChatEvent
          This event will sometimes fire synchronously, depending on how it was triggered.
 class PlayerAnimationEvent
          Represents a player animation event
 class PlayerBedEnterEvent
          This event is fired when the player is almost about to enter the bed.
 class PlayerBucketEmptyEvent
          Called when a player empties a bucket
 class PlayerBucketEvent
           
 class PlayerBucketFillEvent
          Called when a player fills a bucket
 class PlayerChatEvent
          Deprecated. This event will fire from the main thread and allows the use of all of the Bukkit API, unlike the AsyncPlayerChatEvent.

Listening to this event forces chat to wait for the main thread which causes delays for chat.
AsyncPlayerChatEvent is the encouraged alternative for thread safe implementations.
 class PlayerCommandPreprocessEvent
          Called early in the command handling process.
 class PlayerDropItemEvent
          Thrown when a player drops an item from their inventory
 class PlayerFishEvent
          Thrown when a player is fishing
 class PlayerGameModeChangeEvent
           
 class PlayerInteractEntityEvent
          Represents an event that is called when a player right clicks an entity.
 class PlayerInteractEvent
          Called when a player interacts with an object or air.
 class PlayerItemConsumeEvent
          This event will fire when a player is finishing consuming an item (food, potion, milk bucket).
 class PlayerKickEvent
          Called when a player gets kicked from the server
 class PlayerMoveEvent
          Holds information for player movement events
 class PlayerPickupItemEvent
          Thrown when a player picks an item up from the ground
 class PlayerPortalEvent
          Called when a player is about to teleport because it is in contact with a portal
 class PlayerShearEntityEvent
          Called when a player shears an entity
 class PlayerTeleportEvent
          Holds information for player teleport events
 class PlayerToggleFlightEvent
          Called when a player toggles their flying state
 class PlayerToggleSneakEvent
          Called when a player toggles their sneaking state
 class PlayerToggleSprintEvent
          Called when a player toggles their sprinting state
 class PlayerVelocityEvent
           
 

Uses of Cancellable in org.bukkit.event.vehicle
 

Classes in org.bukkit.event.vehicle that implement Cancellable
 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 VehicleExitEvent
          Raised when a living entity exits a vehicle.
 

Uses of Cancellable in org.bukkit.event.weather
 

Classes in org.bukkit.event.weather that implement Cancellable
 class LightningStrikeEvent
          Stores data for lightning striking
 class ThunderChangeEvent
          Stores data for thunder state changing in a world
 class WeatherChangeEvent
          Stores data for weather changing in a world
 

Uses of Cancellable in org.bukkit.event.world
 

Classes in org.bukkit.event.world that implement Cancellable
 class ChunkUnloadEvent
          Called when a chunk is unloaded
 class PortalCreateEvent
          Called when a portal is created
 class StructureGrowEvent
          Event that is called when an organic structure attempts to grow (Sapling -> Tree), (Mushroom -> Huge Mushroom), naturally or using bonemeal.
 class WorldUnloadEvent
          Called when a World is unloaded
 



Copyright © 2013. All Rights Reserved.