Class ElementEvents

java.lang.Object
io.github.xrickastley.sevenelements.events.ElementEvents

@ExpectedEnvironment(SERVER) public final class ElementEvents extends Object
  • Field Details

    • APPLIED

      public static final Event<ElementEvents.ElementApplied> APPLIED
      Called when an element is applied.

      An element is "applied" when its corresponding Elemental Application is first applied to the entity.
    • REAPPLIED

      public static final Event<ElementEvents.ElementReapplied> REAPPLIED
      Called when an element is reapplied. Not to be confused with REFRESHED.

      An element is "reapplied" when its corresponding Elemental Application is reapplied through the ElementalApplication#reapply() method.
    • REFRESHED

      public static final Event<ElementEvents.ElementRefreshed> REFRESHED
      Called when an element is refreshed. Not to be confused with REAPPLIED.

      An element is "refreshed" when its corresponding Elemental Application is replaced with a new Elemental Application.
    • REMOVED

      public static final Event<ElementEvents.ElementRemoved> REMOVED
      Called when an element is removed.

      An element is "removed" when its corresponding Elemental Application expires or is removed.
  • Constructor Details

    • ElementEvents

      public ElementEvents()