Interface Cancellable

All Known Implementing Classes:
AbstractChatEvent, AnvilDamagedEvent, AreaEffectCloudApplyEvent, ArrowBodyCountChangeEvent, AsyncChatEvent, AsyncPlayerChatEvent, AsyncTabCompleteEvent, BatToggleSleepEvent, BeaconEffectEvent, BellRevealRaiderEvent, BellRingEvent, BlockBreakEvent, BlockBurnEvent, BlockCookEvent, BlockDamageEvent, BlockDestroyEvent, BlockDispenseArmorEvent, BlockDispenseEvent, BlockDropItemEvent, BlockExplodeEvent, BlockFadeEvent, BlockFertilizeEvent, BlockFormEvent, BlockFromToEvent, BlockGrowEvent, BlockIgniteEvent, BlockMultiPlaceEvent, BlockPhysicsEvent, BlockPistonEvent, BlockPistonExtendEvent, BlockPistonRetractEvent, BlockPlaceEvent, BlockPreDispenseEvent, BlockReceiveGameEvent, BlockShearEntityEvent, BlockSpreadEvent, BrewEvent, BrewingStandFuelEvent, BroadcastMessageEvent, CauldronLevelChangeEvent, ChatEvent, CraftItemEvent, CreatureSpawnEvent, CreeperIgniteEvent, CreeperPowerEvent, DragonEggFormEvent, ElderGuardianAppearanceEvent, EnchantItemEvent, EnderDragonChangePhaseEvent, EnderDragonFireballHitEvent, EnderDragonFlameEvent, EnderDragonShootFireballEvent, EndermanAttackPlayerEvent, EndermanEscapeEvent, EntityAirChangeEvent, EntityBlockFormEvent, EntityBreakDoorEvent, EntityBreedEvent, EntityChangeBlockEvent, EntityCombustByBlockEvent, EntityCombustByEntityEvent, EntityCombustEvent, EntityCreatePortalEvent, EntityDamageByBlockEvent, EntityDamageByEntityEvent, EntityDamageEvent, EntityDamageItemEvent, EntityDeathEvent, EntityDismountEvent, EntityDropItemEvent, EntityDyeEvent, EntityEnterBlockEvent, EntityEnterLoveModeEvent, EntityExhaustionEvent, EntityExplodeEvent, EntityInsideBlockEvent, EntityInteractEvent, EntityJumpEvent, EntityKnockbackByEntityEvent, EntityLoadCrossbowEvent, EntityMountEvent, EntityMoveEvent, EntityPathfindEvent, EntityPickupItemEvent, EntityPlaceEvent, EntityPortalEvent, EntityPortalExitEvent, EntityPotionEffectEvent, EntityRegainHealthEvent, EntityResurrectEvent, EntityShootBowEvent, EntitySpawnEvent, EntitySpellCastEvent, EntityTameEvent, EntityTargetEvent, EntityTargetLivingEntityEvent, EntityTeleportEndGatewayEvent, EntityTeleportEvent, EntityToggleGlideEvent, EntityToggleSwimEvent, EntityTransformedEvent, EntityTransformEvent, EntityUnleashEvent, EntityZapEvent, ExpBottleEvent, ExperienceOrbMergeEvent, ExplosionPrimeEvent, FireworkExplodeEvent, FluidLevelChangeEvent, FoodLevelChangeEvent, FurnaceBurnEvent, FurnaceSmeltEvent, GenericGameEvent, HangingBreakByEntityEvent, HangingBreakEvent, HangingPlaceEvent, HorseJumpEvent, InventoryClickEvent, InventoryCreativeEvent, InventoryDragEvent, InventoryInteractEvent, InventoryMoveItemEvent, InventoryOpenEvent, InventoryPickupItemEvent, ItemDespawnEvent, ItemMergeEvent, ItemSpawnEvent, LeavesDecayEvent, LightningStrikeEvent, LingeringPotionSplashEvent, LootableInventoryReplenishEvent, LootGenerateEvent, MoistureChangeEvent, NotePlayEvent, PaperServerListPingEvent, PhantomPreSpawnEvent, PiglinBarterEvent, PigZapEvent, PigZombieAngerEvent, PlayerAdvancementCriterionGrantEvent, PlayerAnimationEvent, PlayerArmorStandManipulateEvent, PlayerArmSwingEvent, PlayerAttackEntityCooldownResetEvent, PlayerAttemptPickupItemEvent, PlayerBedEnterEvent, PlayerBedFailEnterEvent, PlayerBedLeaveEvent, PlayerBucketEmptyEvent, PlayerBucketEntityEvent, PlayerBucketEvent, PlayerBucketFillEvent, PlayerBucketFishEvent, PlayerChangeBeaconEffectEvent, PlayerChatEvent, PlayerCommandPreprocessEvent, PlayerDeathEvent, PlayerDeepSleepEvent, PlayerDropItemEvent, PlayerEditBookEvent, PlayerElytraBoostEvent, PlayerFishEvent, PlayerFlowerPotManipulateEvent, PlayerGameModeChangeEvent, PlayerHandshakeEvent, PlayerHarvestBlockEvent, PlayerInteractAtEntityEvent, PlayerInteractEntityEvent, PlayerInteractEvent, PlayerItemConsumeEvent, PlayerItemCooldownEvent, PlayerItemDamageEvent, PlayerItemFrameChangeEvent, PlayerItemHeldEvent, PlayerItemMendEvent, PlayerJumpEvent, PlayerKickEvent, PlayerLaunchProjectileEvent, PlayerLeashEntityEvent, PlayerLecternPageChangeEvent, PlayerLoomPatternSelectEvent, PlayerMoveEvent, PlayerNameEntityEvent, PlayerNaturallySpawnCreaturesEvent, PlayerPickupArrowEvent, PlayerPickupExperienceEvent, PlayerPickupItemEvent, PlayerPortalEvent, PlayerPurchaseEvent, PlayerReadyArrowEvent, PlayerRecipeBookClickEvent, PlayerRecipeDiscoverEvent, PlayerSetSpawnEvent, PlayerShearBlockEvent, PlayerShearEntityEvent, PlayerSignCommandPreprocessEvent, PlayerStartSpectatingEntityEvent, PlayerStatisticIncrementEvent, PlayerStonecutterRecipeSelectEvent, PlayerStopSpectatingEntityEvent, PlayerSwapHandItemsEvent, PlayerTakeLecternBookEvent, PlayerTeleportEndGatewayEvent, PlayerTeleportEvent, PlayerToggleFlightEvent, PlayerToggleSneakEvent, PlayerToggleSprintEvent, PlayerTradeEvent, PlayerUnleashEntityEvent, PlayerVelocityEvent, PortalCreateEvent, PotionSplashEvent, PreCreatureSpawnEvent, PrepareItemEnchantEvent, PreSpawnerSpawnEvent, ProjectileCollideEvent, ProjectileHitEvent, ProjectileLaunchEvent, PufferFishStateChangeEvent, RaidTriggerEvent, RemoteServerCommandEvent, ServerCommandEvent, SheepDyeWoolEvent, SheepRegrowWoolEvent, SignChangeEvent, SkeletonHorseTrapEvent, SlimeChangeDirectionEvent, SlimePathfindEvent, SlimeSplitEvent, SlimeSwimEvent, SlimeTargetLivingEntityEvent, SlimeWanderEvent, SmithItemEvent, SpawnerSpawnEvent, SpongeAbsorbEvent, StriderTemperatureChangeEvent, StructureGrowEvent, StructureLocateEvent, StructuresLocateEvent, TabCompleteEvent, TameableDeathMessageEvent, TargetHitEvent, ThunderChangeEvent, TimeSkipEvent, TNTPrimeEvent, TradeSelectEvent, TurtleGoHomeEvent, TurtleLayEggEvent, TurtleStartDiggingEvent, VehicleCreateEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleEntityCollisionEvent, VehicleExitEvent, VillagerAcquireTradeEvent, VillagerCareerChangeEvent, VillagerReplenishTradeEvent, WeatherChangeEvent, WitchConsumePotionEvent, WitchReadyPotionEvent, WitchThrowPotionEvent, WorldBorderBoundsChangeEvent, WorldBorderCenterChangeEvent, WorldGameRuleChangeEvent, WorldUnloadEvent

public interface Cancellable
  • 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