Enum Class ListenerPriority

java.lang.Object
java.lang.Enum<ListenerPriority>
com.comphenix.protocol.events.ListenerPriority
All Implemented Interfaces:
Serializable, Comparable<ListenerPriority>, Constable

public enum ListenerPriority extends Enum<ListenerPriority>
Represents a packet event priority, similar to the Bukkit EventPriority.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Event call is of high importance.
    Event call is critical and must have the final say in what happens to the event.
    Event call is of low importance.
    Event call is of very low importance and should be run first, to allow other plugins to further customise the outcome.
    Event is listened to purely for monitoring the outcome of an event.
    Event call is neither important nor unimportant, and may be run normally.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    A low slot represents a low priority.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LOWEST

      public static final ListenerPriority LOWEST
      Event call is of very low importance and should be run first, to allow other plugins to further customise the outcome.
    • LOW

      public static final ListenerPriority LOW
      Event call is of low importance.
    • NORMAL

      public static final ListenerPriority NORMAL
      Event call is neither important nor unimportant, and may be run normally.
    • HIGH

      public static final ListenerPriority HIGH
      Event call is of high importance.
    • HIGHEST

      public static final ListenerPriority HIGHEST
      Event call is critical and must have the final say in what happens to the event.
    • MONITOR

      public static final ListenerPriority MONITOR
      Event is listened to purely for monitoring the outcome of an event.

      No modifications to the event should be made under this priority.

  • Method Details

    • values

      public static ListenerPriority[] 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 ListenerPriority 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
    • getSlot

      public int getSlot()
      A low slot represents a low priority.
      Returns:
      Integer representation of this priority.