Interface Cancellable

All Known Implementing Classes:
AreaEffectCloudApplyEvent, AsyncPlayerChatEvent, BatToggleSleepEvent, BlockBreakEvent, BlockBurnEvent, BlockCookEvent, BlockDamageEvent, BlockDispenseArmorEvent, BlockDispenseEvent, BlockDropItemEvent, BlockExplodeEvent, BlockFadeEvent, BlockFertilizeEvent, BlockFormEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockMultiPlaceEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPistonExtendEvent, BlockPistonRetractEvent, BlockPlaceEvent, BlockShearEntityEvent, BlockSpreadEvent, BrewEvent, BrewingStandFuelEvent, BroadcastMessageEvent, CauldronLevelChangeEvent, CraftItemEvent, CreatureSpawnEvent, CreeperPowerEvent, EnchantItemEvent, EnderDragonChangePhaseEvent, EntityAirChangeEvent, EntityBlockFormEvent, EntityBreakDoorEvent, EntityBreedEvent, EntityChangeBlockEvent, EntityCombustByBlockEvent, EntityCombustByEntityEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageByBlockEvent, EntityDamageByEntityEvent, EntityDamageEvent, EntityDismountEvent, EntityDropItemEvent, EntityEnterBlockEvent, EntityEnterLoveModeEvent, EntityExplodeEvent, EntityInteractEvent, EntityMountEvent, EntityPickupItemEvent, EntityPlaceEvent, EntityPortalEvent, EntityPortalExitEvent, EntityPotionEffectEvent, EntityRegainHealthEvent, EntityResurrectEvent, EntityShootBowEvent, EntitySpawnEvent, EntityTameEvent, EntityTargetEvent, EntityTargetLivingEntityEvent, EntityTeleportEvent, EntityToggleGlideEvent, EntityToggleSwimEvent, EntityTransformEvent, ExplosionPrimeEvent, FireworkExplodeEvent, FluidLevelChangeEvent, FoodLevelChangeEvent, FurnaceBurnEvent, FurnaceSmeltEvent, HangingBreakByEntityEvent, HangingBreakEvent, HangingPlaceEvent, HorseJumpEvent, InventoryClickEvent, InventoryCreativeEvent, InventoryDragEvent, InventoryInteractEvent, InventoryMoveItemEvent, InventoryOpenEvent, InventoryPickupItemEvent, ItemDespawnEvent, ItemMergeEvent, ItemSpawnEvent, LeavesDecayEvent, LightningStrikeEvent, LingeringPotionSplashEvent, LootGenerateEvent, MoistureChangeEvent, NotePlayEvent, PigZapEvent, PigZombieAngerEvent, PlayerAnimationEvent, PlayerArmorStandManipulateEvent, PlayerBedEnterEvent, PlayerBucketEmptyEvent, PlayerBucketEvent, PlayerBucketFillEvent, PlayerChatEvent, PlayerCommandPreprocessEvent, PlayerDropItemEvent, PlayerEditBookEvent, PlayerFishEvent, PlayerGameModeChangeEvent, PlayerHarvestBlockEvent, PlayerInteractAtEntityEvent, PlayerInteractEntityEvent, PlayerInteractEvent, PlayerItemConsumeEvent, PlayerItemDamageEvent, PlayerItemHeldEvent, PlayerItemMendEvent, PlayerKickEvent, PlayerLeashEntityEvent, PlayerMoveEvent, PlayerPickupArrowEvent, PlayerPickupItemEvent, PlayerPortalEvent, PlayerRecipeDiscoverEvent, PlayerShearEntityEvent, PlayerStatisticIncrementEvent, PlayerSwapHandItemsEvent, PlayerTakeLecternBookEvent, PlayerTeleportEvent, PlayerToggleFlightEvent, PlayerToggleSneakEvent, PlayerToggleSprintEvent, PlayerUnleashEntityEvent, PlayerVelocityEvent, PortalCreateEvent, PotionSplashEvent, PrepareItemEnchantEvent, ProjectileLaunchEvent, RaidTriggerEvent, RemoteServerCommandEvent, ServerCommandEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SignChangeEvent, SlimeSplitEvent, SpawnerSpawnEvent, SpongeAbsorbEvent, StructureGrowEvent, TabCompleteEvent, ThunderChangeEvent, TimeSkipEvent, TradeSelectEvent, VehicleCreateEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleEntityCollisionEvent, VehicleExitEvent, VillagerAcquireTradeEvent, VillagerCareerChangeEvent, VillagerReplenishTradeEvent, WeatherChangeEvent, WorldUnloadEvent

public interface Cancellable
  • Method Summary

    Modifier and Type Method Description
    boolean isCancelled()
    Gets the cancellation state of this event.
    void setCancelled​(boolean cancel)
    Sets the cancellation state of this event.
  • Method Details

    • 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