Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
EventHandler.java
1 package org.bukkit.event;
2 
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7 
8 /**
9  * An annotation to mark methods as being event handler methods
10  */
11 @Target(ElementType.METHOD)
12 @Retention(RetentionPolicy.RUNTIME)
13 public @interface EventHandler {
14 
15  /**
16  * Define the priority of the event.
17  * <p>
18  * First priority to the last priority executed:
19  * <ol>
20  * <li>LOWEST
21  * <li>LOW
22  * <li>NORMAL
23  * <li>HIGH
24  * <li>HIGHEST
25  * <li>MONITOR
26  * </ol>
27  */
28  EventPriority priority() default EventPriority.NORMAL;
29 
30  /**
31  * Define if the handler ignores a cancelled event.
32  * <p>
33  * If ignoreCancelled is true and the event is cancelled, the method is
34  * not called. Otherwise, the method is always called.
35  */
36  boolean ignoreCancelled() default false;
37 }