Package org.bukkit.event
Interface Cancellable
- All Known Implementing Classes:
AbstractChatEvent
,AnvilDamagedEvent
,AreaEffectCloudApplyEvent
,ArrowBodyCountChangeEvent
,AsyncChatCommandDecorateEvent
,AsyncChatDecorateEvent
,AsyncChatEvent
,AsyncPlayerChatEvent
,AsyncPlayerChatPreviewEvent
,AsyncPlayerSendSuggestionsEvent
,AsyncStructureSpawnEvent
,AsyncTabCompleteEvent
,BatToggleSleepEvent
,BeaconEffectEvent
,BellRevealRaiderEvent
,BellRingEvent
,BellRingEvent
,BlockBreakEvent
,BlockBurnEvent
,BlockCookEvent
,BlockDamageEvent
,BlockDestroyEvent
,BlockDispenseArmorEvent
,BlockDispenseEvent
,BlockDispenseLootEvent
,BlockDropItemEvent
,BlockExplodeEvent
,BlockFadeEvent
,BlockFertilizeEvent
,BlockFormEvent
,BlockFromToEvent
,BlockGrowEvent
,BlockIgniteEvent
,BlockMultiPlaceEvent
,BlockPhysicsEvent
,BlockPistonEvent
,BlockPistonExtendEvent
,BlockPistonRetractEvent
,BlockPlaceEvent
,BlockPreDispenseEvent
,BlockReceiveGameEvent
,BlockShearEntityEvent
,BlockSpreadEvent
,BrewEvent
,BrewingStandFuelEvent
,BroadcastMessageEvent
,CartographyItemEvent
,CauldronLevelChangeEvent
,ChatEvent
,CommandRegisteredEvent
,CrafterCraftEvent
,CraftItemEvent
,CreatureSpawnEvent
,CreeperIgniteEvent
,CreeperPowerEvent
,DragonEggFormEvent
,ElderGuardianAppearanceEvent
,EnchantItemEvent
,EnderDragonChangePhaseEvent
,EnderDragonFireballHitEvent
,EnderDragonFlameEvent
,EnderDragonShootFireballEvent
,EndermanAttackPlayerEvent
,EndermanEscapeEvent
,EntityAirChangeEvent
,EntityBlockFormEvent
,EntityBreakDoorEvent
,EntityBreedEvent
,EntityChangeBlockEvent
,EntityCombustByBlockEvent
,EntityCombustByEntityEvent
,EntityCombustEvent
,EntityCompostItemEvent
,EntityCreatePortalEvent
,EntityDamageByBlockEvent
,EntityDamageByEntityEvent
,EntityDamageEvent
,EntityDamageItemEvent
,EntityDeathEvent
,EntityDismountEvent
,EntityDropItemEvent
,EntityDyeEvent
,EntityEnterBlockEvent
,EntityEnterLoveModeEvent
,EntityExhaustionEvent
,EntityExplodeEvent
,EntityFertilizeEggEvent
,EntityInsideBlockEvent
,EntityInteractEvent
,EntityJumpEvent
,EntityKnockbackByEntityEvent
,EntityKnockbackByEntityEvent
,EntityKnockbackEvent
,EntityKnockbackEvent
,EntityLoadCrossbowEvent
,EntityMountEvent
,EntityMoveEvent
,EntityPathfindEvent
,EntityPickupItemEvent
,EntityPlaceEvent
,EntityPortalEnterEvent
,EntityPortalEvent
,EntityPortalExitEvent
,EntityPortalReadyEvent
,EntityPotionEffectEvent
,EntityPushedByEntityAttackEvent
,EntityRegainHealthEvent
,EntityResurrectEvent
,EntityShootBowEvent
,EntitySpawnEvent
,EntitySpellCastEvent
,EntityTameEvent
,EntityTargetEvent
,EntityTargetLivingEntityEvent
,EntityTeleportEndGatewayEvent
,EntityTeleportEvent
,EntityToggleGlideEvent
,EntityToggleSitEvent
,EntityToggleSwimEvent
,EntityTransformEvent
,EntityUnleashEvent
,EntityZapEvent
,ExecuteCommandEvent
,ExpBottleEvent
,ExperienceOrbMergeEvent
,ExplosionPrimeEvent
,FireworkExplodeEvent
,FluidLevelChangeEvent
,FoodLevelChangeEvent
,FurnaceBurnEvent
,FurnaceSmeltEvent
,GenericGameEvent
,GoatRamEntityEvent
,HangingBreakByEntityEvent
,HangingBreakEvent
,HangingPlaceEvent
,HorseJumpEvent
,InventoryClickEvent
,InventoryCreativeEvent
,InventoryDragEvent
,InventoryInteractEvent
,InventoryMoveItemEvent
,InventoryOpenEvent
,InventoryPickupItemEvent
,ItemDespawnEvent
,ItemMergeEvent
,ItemSpawnEvent
,LeavesDecayEvent
,LightningStrikeEvent
,LingeringPotionSplashEvent
,LlamaJoinCaravanEvent
,LootableInventoryReplenishEvent
,LootGenerateEvent
,MoistureChangeEvent
,NotePlayEvent
,PaperServerListPingEvent
,PhantomPreSpawnEvent
,PiglinBarterEvent
,PigZapEvent
,PigZombieAngerEvent
,PlayerAdvancementCriterionGrantEvent
,PlayerAFKEvent
,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
,PlayerInsertLecternBookEvent
,PlayerInteractAtEntityEvent
,PlayerInteractEntityEvent
,PlayerInteractEvent
,PlayerItemConsumeEvent
,PlayerItemCooldownEvent
,PlayerItemDamageEvent
,PlayerItemFrameChangeEvent
,PlayerItemGroupCooldownEvent
,PlayerItemHeldEvent
,PlayerItemMendEvent
,PlayerJumpEvent
,PlayerKickEvent
,PlayerLaunchProjectileEvent
,PlayerLeashEntityEvent
,PlayerLecternPageChangeEvent
,PlayerLoomPatternSelectEvent
,PlayerMoveEvent
,PlayerNameEntityEvent
,PlayerNaturallySpawnCreaturesEvent
,PlayerOpenSignEvent
,PlayerPickItemEvent
,PlayerPickupArrowEvent
,PlayerPickupExperienceEvent
,PlayerPickupItemEvent
,PlayerPortalEvent
,PlayerPurchaseEvent
,PlayerReadyArrowEvent
,PlayerRecipeBookClickEvent
,PlayerRecipeDiscoverEvent
,PlayerSetSpawnerTypeWithEggEvent
,PlayerSetSpawnEvent
,PlayerSetTrialSpawnerTypeWithEggEvent
,PlayerShearBlockEvent
,PlayerShearEntityEvent
,PlayerShieldDisableEvent
,PlayerSignCommandPreprocessEvent
,PlayerSignOpenEvent
,PlayerSpawnChangeEvent
,PlayerStartSpectatingEntityEvent
,PlayerStatisticIncrementEvent
,PlayerStonecutterRecipeSelectEvent
,PlayerStopSpectatingEntityEvent
,PlayerSwapHandItemsEvent
,PlayerTakeLecternBookEvent
,PlayerTeleportEndGatewayEvent
,PlayerTeleportEvent
,PlayerToggleFlightEvent
,PlayerToggleSneakEvent
,PlayerToggleSprintEvent
,PlayerTrackEntityEvent
,PlayerTradeEvent
,PlayerUnleashEntityEvent
,PlayerVelocityEvent
,PortalCreateEvent
,PotionSplashEvent
,PreBlockExplodeEvent
,PreCreatureSpawnEvent
,PreEntityExplodeEvent
,PrepareItemEnchantEvent
,PrePlayerAttackEntityEvent
,PreSpawnerSpawnEvent
,ProjectileCollideEvent
,ProjectileHitEvent
,ProjectileLaunchEvent
,PufferFishStateChangeEvent
,RaidTriggerEvent
,RemoteServerCommandEvent
,RidableMoveEvent
,RidableSpacebarEvent
,SculkBloomEvent
,ServerCommandEvent
,SheepDyeWoolEvent
,SheepRegrowWoolEvent
,ShulkerDuplicateEvent
,SignChangeEvent
,SkeletonHorseTrapEvent
,SlimeChangeDirectionEvent
,SlimePathfindEvent
,SlimeSplitEvent
,SlimeSwimEvent
,SlimeTargetLivingEntityEvent
,SlimeWanderEvent
,SmithItemEvent
,SpawnerSpawnEvent
,SpongeAbsorbEvent
,StriderTemperatureChangeEvent
,StructureGrowEvent
,StructuresLocateEvent
,TabCompleteEvent
,TameableDeathMessageEvent
,TargetHitEvent
,ThunderChangeEvent
,TimeSkipEvent
,TNTPrimeEvent
,TNTPrimeEvent
,TradeSelectEvent
,TrialSpawnerSpawnEvent
,TurtleGoHomeEvent
,TurtleLayEggEvent
,TurtleStartDiggingEvent
,VaultDisplayItemEvent
,VehicleCreateEvent
,VehicleDamageEvent
,VehicleDestroyEvent
,VehicleEnterEvent
,VehicleEntityCollisionEvent
,VehicleExitEvent
,VillagerAcquireTradeEvent
,VillagerCareerChangeEvent
,VillagerReplenishTradeEvent
,WardenAngerChangeEvent
,WaterBottleSplashEvent
,WeatherChangeEvent
,WhitelistStateUpdateEvent
,WitchConsumePotionEvent
,WitchReadyPotionEvent
,WitchThrowPotionEvent
,WorldBorderBoundsChangeEvent
,WorldBorderCenterChangeEvent
,WorldGameRuleChangeEvent
,WorldUnloadEvent
public interface Cancellable
A type characterizing events that may be cancelled by a plugin or the server.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-