Class AbstractEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
AbstractAffectEntityEvent, AbstractChangeEntityEquipmentEvent, AbstractGoalEvent, AbstractModifierEvent

public abstract class AbstractEvent extends Object implements Event
An abstract event that can be extended for any and all custom events as necessary.
  • Field Details

    • currentOrder

      public @Nullable Order currentOrder
      This field is automatically set by the event manager. It represents the Order of the event handler currently processing the event. When no handler is processing the event, it will be set to null
  • 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.