@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface EventHandler
限定符和类型 | 可选元素和说明 |
---|---|
boolean |
ignoreCancelled
定义事件是否被忽略.
|
EventPriority |
priority
定义事件的优先级。
|
public abstract EventPriority priority
事件被执行的顺序(先后排列):
原文:Define the priority of the event.
First priority to the last priority executed:
public abstract boolean ignoreCancelled
如果 ignoreCancelled 为 true 并且事件被取消, 这个方法将 不会被调用. 否则, 这个方法总是会调用。
原文:Define if the handler ignores a cancelled event.
If ignoreCancelled is true and the event is cancelled, the method is not called. Otherwise, the method is always called.