com.cliffblaster.game.api.event
Enum Event.Priority

java.lang.Object
  extended by java.lang.Enum<Event.Priority>
      extended by com.cliffblaster.game.api.event.Event.Priority
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Event.Priority>
Enclosing class:
Event

public static enum Event.Priority
extends java.lang.Enum<Event.Priority>

The order in which an EventListener will be called.
Priority.REALTIME reserved for mission critical plug-ins.


Enum Constant Summary
HIGH
          Higher than normal priority.
HIGHEST
          Highest normal priority.
LOW
          Low priority.
LOWEST
          Lowest priority.
NORMAL
          Normal priority.
REALTIME
          Avoid using.
 
Method Summary
static Event.Priority valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Event.Priority[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REALTIME

public static final Event.Priority REALTIME
Avoid using. This is the absolute highest priority and is reserved for mission critical plug-ins such as permission managers.


HIGHEST

public static final Event.Priority HIGHEST
Highest normal priority. Used when the plug-in should receive the event earlier than most plug-ins.


HIGH

public static final Event.Priority HIGH
Higher than normal priority. Used when the plug-in should receive the event earlier than most plug-ins, but is not as critical.


NORMAL

public static final Event.Priority NORMAL
Normal priority. Used when the plug-in should receive the event at a normal time, and it does not matter that any plug-in processed it earlier or will process it after.


LOW

public static final Event.Priority LOW
Low priority. Used when the plug-in should receive the event after most plug-ins have already processed the event.


LOWEST

public static final Event.Priority LOWEST
Lowest priority. Used when the plug-in should receive the event after most plug-ins have already processed the event and it is crucial to be the last to process it.

Method Detail

values

public static final Event.Priority[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Event.Priority c : Event.Priority.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Event.Priority valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name