[Bleeding] Changed event system into a new, much faster design. Huge thanks to @zml2008 & @lahwran.
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
15
paper-api/src/main/java/org/bukkit/event/EventHandler.java
Normal file
15
paper-api/src/main/java/org/bukkit/event/EventHandler.java
Normal file
@@ -0,0 +1,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();
|
||||
}
|
||||
Reference in New Issue
Block a user