18 lines
465 B
Java
18 lines
465 B
Java
package org.bukkit.event;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* An annotation to mark methods as being event handler methods
|
|
*/
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface EventHandler {
|
|
EventPriority priority() default EventPriority.NORMAL;
|
|
|
|
boolean ignoreCancelled() default false;
|
|
}
|