Interface Cancellable

All Known Implementing Classes:
AreaEffectCloudApplyEvent, ArrowBodyCountChangeEvent, AsyncPlayerChatEvent, AsyncPlayerChatPreviewEvent, AsyncStructureSpawnEvent, BatToggleSleepEvent, BellRingEvent, BlockBreakEvent, BlockBurnEvent, BlockCookEvent, BlockDamageEvent, BlockDispenseArmorEvent, BlockDispenseEvent, BlockDropItemEvent, BlockExplodeEvent, BlockFadeEvent, BlockFertilizeEvent, BlockFormEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockMultiPlaceEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPistonExtendEvent, BlockPistonRetractEvent, BlockPlaceEvent, BlockReceiveGameEvent, 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, EntityExhaustionEvent, EntityExplodeEvent, EntityInteractEvent, EntityMountEvent, EntityPickupItemEvent, EntityPlaceEvent, EntityPortalEvent, EntityPortalExitEvent, EntityPotionEffectEvent, EntityRegainHealthEvent, EntityResurrectEvent, EntityShootBowEvent, EntitySpawnEvent, EntitySpellCastEvent, EntityTameEvent, EntityTargetEvent, EntityTargetLivingEntityEvent, EntityTeleportEvent, EntityToggleGlideEvent, EntityToggleSwimEvent, EntityTransformEvent, ExpBottleEvent, ExplosionPrimeEvent, FireworkExplodeEvent, FluidLevelChangeEvent, FoodLevelChangeEvent, FurnaceBurnEvent, FurnaceSmeltEvent, GenericGameEvent, HangingBreakByEntityEvent, HangingBreakEvent, HangingPlaceEvent, HorseJumpEvent, InventoryClickEvent, InventoryCreativeEvent, InventoryDragEvent, InventoryInteractEvent, InventoryMoveItemEvent, InventoryOpenEvent, InventoryPickupItemEvent, ItemDespawnEvent, ItemMergeEvent, ItemSpawnEvent, LeavesDecayEvent, LightningStrikeEvent, LingeringPotionSplashEvent, LootGenerateEvent, MoistureChangeEvent, NotePlayEvent, PiglinBarterEvent, PigZapEvent, PigZombieAngerEvent, PlayerAnimationEvent, PlayerArmorStandManipulateEvent, PlayerBedEnterEvent, PlayerBedLeaveEvent, PlayerBucketEmptyEvent, PlayerBucketEntityEvent, PlayerBucketEvent, PlayerBucketFillEvent, PlayerBucketFishEvent, PlayerChatEvent, PlayerCommandPreprocessEvent, PlayerDropItemEvent, PlayerEditBookEvent, PlayerFishEvent, PlayerGameModeChangeEvent, PlayerHarvestBlockEvent, PlayerInteractAtEntityEvent, PlayerInteractEntityEvent, PlayerInteractEvent, PlayerItemConsumeEvent, PlayerItemDamageEvent, PlayerItemHeldEvent, PlayerItemMendEvent, PlayerKickEvent, PlayerLeashEntityEvent, PlayerMoveEvent, PlayerPickupArrowEvent, PlayerPickupItemEvent, PlayerPortalEvent, PlayerRecipeDiscoverEvent, PlayerShearEntityEvent, PlayerSignOpenEvent, PlayerSpawnChangeEvent, PlayerStatisticIncrementEvent, PlayerSwapHandItemsEvent, PlayerTakeLecternBookEvent, PlayerTeleportEvent, PlayerToggleFlightEvent, PlayerToggleSneakEvent, PlayerToggleSprintEvent, PlayerUnleashEntityEvent, PlayerVelocityEvent, PortalCreateEvent, PotionSplashEvent, PrepareItemEnchantEvent, ProjectileHitEvent, ProjectileLaunchEvent, RaidTriggerEvent, RemoteServerCommandEvent, SculkBloomEvent, ServerCommandEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SignChangeEvent, SlimeSplitEvent, SmithItemEvent, SpawnerSpawnEvent, SpongeAbsorbEvent, StriderTemperatureChangeEvent, StructureGrowEvent, TabCompleteEvent, ThunderChangeEvent, TimeSkipEvent, TNTPrimeEvent, TradeSelectEvent, VehicleCreateEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleEntityCollisionEvent, VehicleExitEvent, VillagerAcquireTradeEvent, VillagerCareerChangeEvent, VillagerReplenishTradeEvent, WeatherChangeEvent, WorldUnloadEvent

public interface Cancellable
A type characterizing events that may be cancelled by a plugin or the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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