Package org.spongepowered.api.event.impl
Class AbstractEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
AbstractAffectEntityEvent
,AbstractChangeEntityEquipmentEvent
,AbstractGoalEvent
,AbstractModifierEvent
An abstract event that can be extended for any and all custom events as
necessary.
-
Field Details
-
currentOrder
This field is automatically set by the event manager. It represents theOrder
of the event handler currently processing the event. When no handler is processing the event, it will be set tonull
-
-
Constructor Details
-
AbstractEvent
public AbstractEvent()
-
-
Method Details
-
init
protected void init()Called once all fields have been set by the generated constructor in a subclass.This method should be used to initialize any fields that depend on parameters passed to the constructor.
-