程序包 org.bukkit.event
注解 EventHandler
用来标记要处理的事件的注释。
-
可选元素概要
-
元素详细资料
-
priority
EventPriority priority定义事件的优先级。事件被执行的顺序(先后排列):
- LOWEST
- LOW
- NORMAL
- HIGH
- HIGHEST
- MONITOR
原文:Define the priority of the event.
First priority to the last priority executed:
- LOWEST
- LOW
- NORMAL
- HIGH
- HIGHEST
- MONITOR
- 返回:
- 优先级
- 默认值:
- NORMAL
-
ignoreCancelled
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.
- 返回:
- 事件是否被忽略
- 默认值:
- false
-