Class BaseEvent

java.lang.Object
me.arcademadness.omni_dungeon.events.BaseEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
CollisionEvent, EntityEvent

public abstract class BaseEvent extends Object implements Event
  • Constructor Details

    • BaseEvent

      public BaseEvent()
  • Method Details

    • execute

      protected abstract void execute()
    • cancel

      public void cancel()
      Description copied from interface: Event
      Cancels this event.

      Calling this method sets the event's canceled state to true.

      Specified by:
      cancel in interface Event
      See Also:
    • isCanceled

      public boolean isCanceled()
      Description copied from interface: Event
      Checks whether this event has been canceled.
      Specified by:
      isCanceled in interface Event
      Returns:
      true if the event is canceled, false otherwise
      See Also:
    • setCanceled

      public void setCanceled(boolean canceled)
      Description copied from interface: Event
      Sets the canceled state of this event.
      Specified by:
      setCanceled in interface Event
      Parameters:
      canceled - true to cancel the event, false to uncancel
      See Also: