Contents
Interface ICancellableEcsEvent
- All Known Implementing Classes:
BreakBlockEvent, CancellableEcsEvent, ChangeGameModeEvent, ChunkSaveEvent, ChunkUnloadEvent, CraftRecipeEvent, CraftRecipeEvent.Post, CraftRecipeEvent.Pre, Damage, DamageBlockEvent, DiscoverInstanceEvent.Display, DiscoverZoneEvent.Display, DropItemEvent, DropItemEvent.Drop, DropItemEvent.PlayerRequest, GameModeTypeEnterEvent, GameModeTypeExitEvent, InteractionChainStartEvent, InteractivelyPickupItemEvent, InventoryActiveSlotRequestEvent, KillFeedEvent.DecedentMessage, KillFeedEvent.Display, KillFeedEvent.KillerMessage, PlaceBlockEvent, PrefabPasteEvent, PrefabPlaceEntityEvent, RespawnEvent, SectionUnloadEvent, UseBlockEvent.Pre, UseEntityEvent.Pre
public interface ICancellableEcsEvent
An interface for ECS events that can be cancelled.
Useful for subclasses of EcsEvent that want to provide cancellable functionality.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this event has been cancelled.voidsetCancelled(boolean cancelled) Changes whether this event has been cancelled or not.
-
Method Details
-
isCancelled
boolean isCancelled()Returns whether this event has been cancelled.- Returns:
trueif the event is cancelled,falseotherwise.
-
setCancelled
void setCancelled(boolean cancelled) Changes whether this event has been cancelled or not.- Parameters:
cancelled- Whether the event should be cancelled.
-