Package net.minestom.server.event.trait
Interface CancellableEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
AddEntityToInstanceEvent
,BasicQueryEvent
,ClientPingServerEvent
,EntityDamageEvent
,EntityFireExtinguishEvent
,EntityItemMergeEvent
,EntitySetFireEvent
,EntityShootEvent
,EntityVelocityEvent
,FullQueryEvent
,InventoryOpenEvent
,InventoryPreClickEvent
,ItemDropEvent
,PickupExperienceEvent
,PickupItemEvent
,PlayerBlockBreakEvent
,PlayerBlockInteractEvent
,PlayerBlockPlaceEvent
,PlayerChangeHeldSlotEvent
,PlayerChatEvent
,PlayerCommandEvent
,PlayerGameModeChangeEvent
,PlayerHandAnimationEvent
,PlayerItemAnimationEvent
,PlayerMoveEvent
,PlayerPacketEvent
,PlayerPacketOutEvent
,PlayerPreEatEvent
,PlayerStartDiggingEvent
,PlayerSwapItemEvent
,PlayerUseItemEvent
,ProjectileCollideWithBlockEvent
,ProjectileCollideWithEntityEvent
,QueryEvent
,ServerListPingEvent
Represents an
Event
which can be cancelled.
Called using EventDispatcher.callCancellable(CancellableEvent, Runnable)
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if theEvent
should be cancelled or not.void
setCancelled
(boolean cancel) Marks theEvent
as cancelled or not.
-
Method Details