Contents
Class CancellableEcsEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
- All Implemented Interfaces:
ICancellableEcsEvent
- Direct Known Subclasses:
BreakBlockEvent, ChangeGameModeEvent, ChunkSaveEvent, ChunkUnloadEvent, CraftRecipeEvent, Damage, DamageBlockEvent, DropItemEvent, GameModeTypeEnterEvent, GameModeTypeExitEvent, InteractionChainStartEvent, InteractivelyPickupItemEvent, InventoryActiveSlotRequestEvent, KillFeedEvent.DecedentMessage, KillFeedEvent.Display, KillFeedEvent.KillerMessage, PlaceBlockEvent, PrefabPasteEvent, PrefabPlaceEntityEvent, RespawnEvent, SectionUnloadEvent
Represents a cancellable event in the ECS framework.
These events are invoked by the ECS store of a world and can be handled by systems in a thread-safe manner.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns whether this event has been cancelled.final voidsetCancelled(boolean cancelled) Changes whether this event has been cancelled or not.
-
Constructor Details
-
CancellableEcsEvent
public CancellableEcsEvent()
-
-
Method Details
-
isCancelled
public final boolean isCancelled()Returns whether this event has been cancelled.- Specified by:
isCancelledin interfaceICancellableEcsEvent- Returns:
trueif the event is cancelled,falseotherwise.
-
setCancelled
public final void setCancelled(boolean cancelled) Changes whether this event has been cancelled or not.- Specified by:
setCancelledin interfaceICancellableEcsEvent- Parameters:
cancelled- Whether the event should be cancelled.
-