1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package org.bukkit.event; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * An annotation to mark methods as being event handler methods */ @Retention(RetentionPolicy.RUNTIME) public @interface EventHandler { Class<? extends Event> event(); EventPriority priority(); }