public abstract class PluginEventListener extends Listener<PluginContext>
| 限定符 | 构造器和说明 |
|---|---|
protected |
PluginEventListener() |
protected |
PluginEventListener(int priority)
自定义优先级,适用于局部有先后关系的监听
|
protected |
PluginEventListener(int priority,
PluginListenerScope scope)
自定义优先级,适用于局部有先后关系的监听,自定义scope
|
protected |
PluginEventListener(PluginListenerPriority priority) |
protected |
PluginEventListener(PluginListenerPriority priority,
PluginListenerScope scope) |
protected |
PluginEventListener(PluginListenerScope scope) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
on(Event event,
PluginContext context)
on
|
abstract void |
on(PluginEvent event)
插件发生特定事件时
|
protected PluginEventListener()
protected PluginEventListener(int priority)
protected PluginEventListener(PluginListenerPriority priority)
protected PluginEventListener(PluginListenerScope scope)
protected PluginEventListener(int priority,
PluginListenerScope scope)
protected PluginEventListener(PluginListenerPriority priority, PluginListenerScope scope)
public void on(Event event, PluginContext context)
Listeneron 在类中 Listener<PluginContext>public abstract void on(PluginEvent event)