001 package org.bukkit.event; 002 003 /** 004 * Represents an event's priority in execution 005 */ 006 public enum EventPriority { 007 008 /** 009 * Event call is of very low importance and should be ran first, to allow 010 * other plugins to further customise the outcome 011 */ 012 LOWEST(0), 013 /** 014 * Event call is of low importance 015 */ 016 LOW(1), 017 /** 018 * Event call is neither important nor unimportant, and may be ran 019 * normally 020 */ 021 NORMAL(2), 022 /** 023 * Event call is of high importance 024 */ 025 HIGH(3), 026 /** 027 * Event call is critical and must have the final say in what happens 028 * to the event 029 */ 030 HIGHEST(4), 031 /** 032 * Event is listened to purely for monitoring the outcome of an event. 033 * <p> 034 * No modifications to the event should be made under this priority 035 */ 036 MONITOR(5); 037 038 private final int slot; 039 040 private EventPriority(int slot) { 041 this.slot = slot; 042 } 043 044 public int getSlot() { 045 return slot; 046 } 047 }