枚举的使用
org.bukkit.event.EventPriority
-
org.bukkit.event中EventPriority的使用
修饰符和类型方法说明static EventPriority
返回带有指定名称的该类型的枚举常量。static EventPriority[]
EventPriority.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。 -
org.bukkit.plugin中EventPriority的使用
修饰符和类型方法说明void
PluginManager.registerEvent
(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin) Registers the specified executor to the given event classvoid
PluginManager.registerEvent
(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled) Registers the specified executor to the given event classvoid
SimplePluginManager.registerEvent
(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin) void
SimplePluginManager.registerEvent
(Class<? extends Event> event, Listener listener, EventPriority priority, EventExecutor executor, Plugin plugin, boolean ignoreCancelled) Registers the given event to the specified listener using a directly passed EventExecutor限定符构造器说明RegisteredListener
(Listener listener, EventExecutor executor, EventPriority priority, Plugin plugin, boolean ignoreCancelled) TimedRegisteredListener
(Listener pluginListener, EventExecutor eventExecutor, EventPriority eventPriority, Plugin registeredPlugin, boolean listenCancelled)