Class BaseEvent
java.lang.Object
me.arcademadness.omni_dungeon.events.BaseEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
CollisionEvent,EntityEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels this event.protected abstract voidexecute()booleanChecks whether this event has been canceled.voidsetCanceled(boolean canceled) Sets the canceled state of this event.
-
Constructor Details
-
BaseEvent
public BaseEvent()
-
-
Method Details
-
execute
protected abstract void execute() -
cancel
public void cancel()Description copied from interface:EventCancels this event.Calling this method sets the event's canceled state to
true. -
isCanceled
public boolean isCanceled()Description copied from interface:EventChecks whether this event has been canceled.- Specified by:
isCanceledin interfaceEvent- Returns:
trueif the event is canceled,falseotherwise- See Also:
-
setCanceled
public void setCanceled(boolean canceled) Description copied from interface:EventSets the canceled state of this event.- Specified by:
setCanceledin interfaceEvent- Parameters:
canceled-trueto cancel the event,falseto uncancel- See Also:
-