Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EventPriority.java
1 package org.bukkit.event;
2 
3 /**
4  * Represents an event's priority in execution
5  */
6 public enum EventPriority {
7 
8  /**
9  * Event call is of very low importance and should be ran first, to allow
10  * other plugins to further customise the outcome
11  */
12  LOWEST(0),
13  /**
14  * Event call is of low importance
15  */
16  LOW(1),
17  /**
18  * Event call is neither important nor unimportant, and may be ran
19  * normally
20  */
21  NORMAL(2),
22  /**
23  * Event call is of high importance
24  */
25  HIGH(3),
26  /**
27  * Event call is critical and must have the final say in what happens
28  * to the event
29  */
30  HIGHEST(4),
31  /**
32  * Event is listened to purely for monitoring the outcome of an event.
33  * <p>
34  * No modifications to the event should be made under this priority
35  */
36  MONITOR(5);
37 
38  private final int slot;
39 
40  private EventPriority(int slot) {
41  this.slot = slot;
42  }
43 
44  public int getSlot() {
45  return slot;
46  }
47 }