Interface Cancellable

All Known Subinterfaces:
AffectEntityEvent, AffectItemStackEvent, AffectSlotEvent, AnimateHandEvent, AttackEntityEvent, BanIpEvent, BreedingEvent, BreedingEvent.Breed, BreedingEvent.FindMate, BreedingEvent.ReadyToMate, BrewingEvent.ConsumeFuel, BrewingEvent.Start, BrewingEvent.Tick, ChangeBlockEvent.All, ChangeBlockEvent.Pre, ChangeDataHolderEvent, ChangeDataHolderEvent.ValueChange, ChangeEntityEquipmentEvent, ChangeEntityEquipmentEvent.Break, ChangeEntityWorldEvent.Pre, ChangeEntityWorldEvent.Reposition, ChangeInventoryEvent, ChangeInventoryEvent.Drop, ChangeInventoryEvent.Drop.Full, ChangeInventoryEvent.Drop.Single, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.Pickup.Pre, ChangeInventoryEvent.SwapHand, ChangeSignEvent, ChangeWeatherEvent, ChangeWorldBorderEvent, ChangeWorldBorderEvent.Player, ChangeWorldBorderEvent.World, ChunkEvent.Save.Pre, ClickContainerEvent, ClickContainerEvent.Creative, ClickContainerEvent.Creative.Drop, ClickContainerEvent.Creative.Set, ClickContainerEvent.Double, ClickContainerEvent.Drag, ClickContainerEvent.Drag.Middle, ClickContainerEvent.Drag.Primary, ClickContainerEvent.Drag.Secondary, ClickContainerEvent.Drop, ClickContainerEvent.Drop.Full, ClickContainerEvent.Drop.Outside, ClickContainerEvent.Drop.Outside.Primary, ClickContainerEvent.Drop.Outside.Secondary, ClickContainerEvent.Drop.Single, ClickContainerEvent.Middle, ClickContainerEvent.NumberPress, ClickContainerEvent.Primary, ClickContainerEvent.Recipe, ClickContainerEvent.Recipe.All, ClickContainerEvent.Recipe.Single, ClickContainerEvent.Secondary, ClickContainerEvent.SelectTrade, ClickContainerEvent.Shift, ClickContainerEvent.Shift.Primary, ClickContainerEvent.Shift.Secondary, ClientPingServerEvent, CollideBlockEvent, CollideBlockEvent.Fall, CollideBlockEvent.Impact, CollideBlockEvent.Inside, CollideBlockEvent.Move, CollideBlockEvent.StepOn, CollideEntityEvent, CollideEntityEvent.Impact, CollideEvent, CollideEvent.Impact, ConstructEntityEvent.Pre, CookingEvent.ConsumeFuel, CookingEvent.Start, CookingEvent.Tick, CooldownEvent.Set, CraftItemEvent, CraftItemEvent.Craft, CraftItemEvent.Preview, CreateMapEvent, CriterionEvent.Grant, CriterionEvent.Revoke, CriterionEvent.Score.Change, CriterionEvent.Score.Grant, CriterionEvent.Score.Revoke, DamageEntityEvent, DefuseExplosiveEvent.Pre, DestructEntityEvent.Death, DetonateExplosiveEvent, DropItemEvent, DropItemEvent.Close, DropItemEvent.Custom, DropItemEvent.Destruct, DropItemEvent.Dispense, DropItemEvent.Pre, EnchantItemEvent, EnchantItemEvent.CalculateEnchantment, EnchantItemEvent.CalculateLevelRequirement, EnchantItemEvent.Post, ExecuteCommandEvent.Pre, ExplosionEvent, ExplosionEvent.Detonate, ExplosionEvent.Pre, FishingEvent.HookEntity, FishingEvent.Start, FishingEvent.Stop, GoalEvent, GoalEvent.Add, GoalEvent.Remove, HarvestEntityEvent, IgniteEntityEvent, InteractBlockEvent.Primary.Finish, InteractBlockEvent.Primary.Start, InteractBlockEvent.Secondary, InteractContainerEvent, InteractContainerEvent.Close, InteractContainerEvent.Open, InteractEntityEvent, InteractEntityEvent.Primary, InteractEntityEvent.Secondary, InteractEntityEvent.Secondary.At, InteractEntityEvent.Secondary.On, InteractItemEvent.Secondary, ItemMergeWithItemEvent, KickPlayerEvent, LeashEntityEvent, LightningEvent.Pre, LightningEvent.Strike, MoveEntityEvent, NotifyNeighborBlockEvent, PardonIpEvent, PlayerChatEvent, PlaySoundEvent, PlaySoundEvent.AtEntity, PlaySoundEvent.Broadcast, PlaySoundEvent.NoteBlock, PlaySoundEvent.Record, PlaySoundEvent.Record.Start, PlaySoundEvent.Record.Stop, PrimeExplosiveEvent.Pre, RconConnectionEvent.Auth, RconConnectionEvent.Connect, RespawnPlayerEvent.Recreate, RideEntityEvent, RideEntityEvent.Dismount, RideEntityEvent.Mount, RotateEntityEvent, SaveWorldEvent.Pre, ServerSideConnectionEvent.Auth, ServerSideConnectionEvent.Login, SetAITargetEvent, SleepingEvent.Failed, SleepingEvent.Pre, SleepingEvent.Tick, SpawnEntityEvent, SpawnEntityEvent.Custom, SpawnEntityEvent.Pre, TameEntityEvent, TickBlockEvent, TickBlockEvent.Random, TickBlockEvent.Scheduled, TransferInventoryEvent.Pre, UnleashEntityEvent, UpdateAnvilEvent, UseItemStackEvent.Finish, UseItemStackEvent.Replace, UseItemStackEvent.Start, UseItemStackEvent.Stop, UseItemStackEvent.Tick
All Known Implementing Classes:
AbstractAffectEntityEvent, AbstractAttackEntityEvent, AbstractChangeEntityEquipmentEvent, AbstractDamageEntityEvent, AbstractDetonateEvent, AbstractGoalEvent, AbstractSpawnEntityEvent, AbstractValueChangeEvent

public interface Cancellable
Represents an event that can be cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets if the Event has been cancelled.
    void
    setCancelled(boolean cancel)
    Sets the cancelled state of the Event.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Gets if the Event has been cancelled.
      Returns:
      Is this event cancelled
    • setCancelled

      void setCancelled(boolean cancel)
      Sets the cancelled state of the Event.
      Parameters:
      cancel - The new cancelled state