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 Type
    Method
    Description
    boolean
    Returns whether this event has been cancelled.
    void
    setCancelled(boolean cancelled)
    Changes whether this event has been cancelled or not.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Returns whether this event has been cancelled.
      Returns:
      true if the event is cancelled, false otherwise.
    • setCancelled

      void setCancelled(boolean cancelled)
      Changes whether this event has been cancelled or not.
      Parameters:
      cancelled - Whether the event should be cancelled.