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

public abstract class CancellableEcsEvent extends EcsEvent implements ICancellableEcsEvent
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 Details

    • CancellableEcsEvent

      public CancellableEcsEvent()
  • Method Details

    • isCancelled

      public final boolean isCancelled()
      Returns whether this event has been cancelled.
      Specified by:
      isCancelled in interface ICancellableEcsEvent
      Returns:
      true if the event is cancelled, false otherwise.
    • setCancelled

      public final void setCancelled(boolean cancelled)
      Changes whether this event has been cancelled or not.
      Specified by:
      setCancelled in interface ICancellableEcsEvent
      Parameters:
      cancelled - Whether the event should be cancelled.