org.bukkit.event
Interface Cancellable

All Known Implementing Classes:
AsyncPlayerChatEvent, BlockBreakEvent, BlockBurnEvent, BlockDamageEvent, BlockDispenseEvent, BlockFadeEvent, BlockFormEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPistonExtendEvent, BlockPistonRetractEvent, BlockPlaceEvent, BlockSpreadEvent, BrewEvent, ChunkUnloadEvent, CraftItemEvent, CreatureSpawnEvent, CreeperPowerEvent, EnchantItemEvent, EntityBlockFormEvent, EntityBreakDoorEvent, EntityChangeBlockEvent, EntityCombustByBlockEvent, EntityCombustByEntityEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageByBlockEvent, EntityDamageByEntityEvent, EntityDamageEvent, EntityExplodeEvent, EntityInteractEvent, EntityPortalEvent, EntityPortalExitEvent, EntityRegainHealthEvent, EntityShootBowEvent, EntityTameEvent, EntityTargetEvent, EntityTargetLivingEntityEvent, EntityTeleportEvent, ExplosionPrimeEvent, FoodLevelChangeEvent, FurnaceBurnEvent, FurnaceSmeltEvent, HangingBreakByEntityEvent, HangingBreakEvent, HangingPlaceEvent, InventoryClickEvent, InventoryOpenEvent, InventoryPickupItemEvent, ItemDespawnEvent, ItemSpawnEvent, LeavesDecayEvent, LightningStrikeEvent, NotePlayEvent, PaintingBreakByEntityEvent, PaintingBreakEvent, PaintingPlaceEvent, PigZapEvent, PlayerAnimationEvent, PlayerBedEnterEvent, PlayerBucketEmptyEvent, PlayerBucketEvent, PlayerBucketFillEvent, PlayerChatEvent, PlayerCommandPreprocessEvent, PlayerDropItemEvent, PlayerFishEvent, PlayerGameModeChangeEvent, PlayerInteractEntityEvent, PlayerInteractEvent, PlayerItemConsumeEvent, PlayerKickEvent, PlayerMoveEvent, PlayerPickupItemEvent, PlayerPortalEvent, PlayerShearEntityEvent, PlayerTeleportEvent, PlayerToggleFlightEvent, PlayerToggleSneakEvent, PlayerToggleSprintEvent, PlayerVelocityEvent, PortalCreateEvent, PotionSplashEvent, PrepareItemEnchantEvent, ProjectileLaunchEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SignChangeEvent, SlimeSplitEvent, StructureGrowEvent, ThunderChangeEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleEntityCollisionEvent, VehicleExitEvent, WeatherChangeEvent, WorldUnloadEvent

public interface Cancellable


Method Summary
 boolean isCancelled()
          Gets the cancellation state of this event.
 void setCancelled(boolean cancel)
          Sets the cancellation state of this event.
 

Method Detail

isCancelled

boolean isCancelled()
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns:
true if this event is cancelled

setCancelled

void setCancelled(boolean cancel)
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters:
cancel - true if you wish to cancel this event


Copyright © 2013. All Rights Reserved.