Enum Class PostOrder

java.lang.Object
java.lang.Enum<PostOrder>
org.geysermc.event.PostOrder
All Implemented Interfaces:
Serializable, Comparable<PostOrder>, Constable

public enum PostOrder extends Enum<PostOrder>
Represents in which order (and thus when) the subscriber is called.
  • Enum Constant Details

    • FIRST

      public static final PostOrder FIRST
      Called first, before all other subscribers.
    • EARLY

      public static final PostOrder EARLY
      Called before the normal subscribers.
    • NORMAL

      public static final PostOrder NORMAL
      The normal (default) order. The subscription has no special priority.
    • LATE

      public static final PostOrder LATE
      Called after normal (default) subscribers.
    • LAST

      public static final PostOrder LAST
      Called last, after all other subscribers. Generally reserved for monitoring the outcome.
  • Method Details

    • values

      public static PostOrder[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PostOrder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null