Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 38 lines 965 B view raw
1package org.bukkit.event; 2 3import java.lang.annotation.ElementType; 4import java.lang.annotation.Retention; 5import java.lang.annotation.RetentionPolicy; 6import java.lang.annotation.Target; 7 8@Target(ElementType.METHOD) 9@Retention(RetentionPolicy.RUNTIME) 10public @interface EventHandler { 11 12 /** 13 * Define the priority of the event. 14 * <p> 15 * First priority to the last priority executed: 16 * <ol> 17 * <li>LOWEST 18 * <li>LOW 19 * <li>NORMAL 20 * <li>HIGH 21 * <li>HIGHEST 22 * <li>MONITOR 23 * </ol> 24 * 25 * @return the priority 26 */ 27 Event.Priority priority() default Event.Priority.Normal; 28 29 /** 30 * Define if the handler ignores a cancelled event. 31 * <p> 32 * If ignoreCancelled is true and the event is cancelled, the method is 33 * not called. Otherwise, the method is always called. 34 * 35 * @return whether cancelled events should be ignored 36 */ 37 boolean ignoreCancelled() default false; 38}