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
,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
,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
,EntityPortalEvent
,EntityPortalExitEvent
,EntityPortalReadyEvent
,EntityPotionEffectEvent
,EntityPushedByEntityAttackEvent
,EntityRegainHealthEvent
,EntityResurrectEvent
,EntityShootBowEvent
,EntitySpawnEvent
,EntitySpellCastEvent
,EntityTameEvent
,EntityTargetEvent
,EntityTargetLivingEntityEvent
,EntityTeleportEndGatewayEvent
,EntityTeleportEvent
,EntityToggleGlideEvent
,EntityToggleSitEvent
,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
,PlayerOpenSignEvent
,PlayerPickItemEvent
,PlayerPickupArrowEvent
,PlayerPickupExperienceEvent
,PlayerPickupItemEvent
,PlayerPortalEvent
,PlayerPurchaseEvent
,PlayerReadyArrowEvent
,PlayerRecipeBookClickEvent
,PlayerRecipeDiscoverEvent
,PlayerSetSpawnEvent
,PlayerShearBlockEvent
,PlayerShearEntityEvent
,PlayerShieldDisableEvent
,PlayerSignCommandPreprocessEvent
,PlayerSignOpenEvent
,PlayerSpawnChangeEvent
,PlayerStartSpectatingEntityEvent
,PlayerStatisticIncrementEvent
,PlayerStonecutterRecipeSelectEvent
,PlayerStopSpectatingEntityEvent
,PlayerSwapHandItemsEvent
,PlayerTakeLecternBookEvent
,PlayerTeleportEndGatewayEvent
,PlayerTeleportEvent
,PlayerToggleFlightEvent
,PlayerToggleSneakEvent
,PlayerToggleSprintEvent
,PlayerTrackEntityEvent
,PlayerTradeEvent
,PlayerUnleashEntityEvent
,PlayerVelocityEvent
,PortalCreateEvent
,PotionSplashEvent
,PreCreatureSpawnEvent
,PrepareItemEnchantEvent
,PrePlayerAttackEntityEvent
,PreSpawnerSpawnEvent
,ProjectileCollideEvent
,ProjectileHitEvent
,ProjectileLaunchEvent
,PufferFishStateChangeEvent
,RaidTriggerEvent
,RemoteServerCommandEvent
,SculkBloomEvent
,ServerCommandEvent
,SheepDyeWoolEvent
,SheepRegrowWoolEvent
,ShulkerDuplicateEvent
,SignChangeEvent
,SkeletonHorseTrapEvent
,SlimeChangeDirectionEvent
,SlimePathfindEvent
,SlimeSplitEvent
,SlimeSwimEvent
,SlimeTargetLivingEntityEvent
,SlimeWanderEvent
,SmithItemEvent
,SpawnerSpawnEvent
,SpongeAbsorbEvent
,StriderTemperatureChangeEvent
,StructureGrowEvent
,StructureLocateEvent
,StructuresLocateEvent
,TabCompleteEvent
,TameableDeathMessageEvent
,TargetHitEvent
,ThunderChangeEvent
,TimeSkipEvent
,TNTPrimeEvent
,TNTPrimeEvent
,TradeSelectEvent
,TurtleGoHomeEvent
,TurtleLayEggEvent
,TurtleStartDiggingEvent
,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
-