类 RegisteredListener
java.lang.Object
org.bukkit.plugin.RegisteredListener
- 直接已知子类:
TimedRegisteredListener
Stores relevant information for plugin listeners
-
构造器概要
构造器说明RegisteredListener
(@NotNull Listener listener, @NotNull EventExecutor executor, @NotNull EventPriority priority, @NotNull Plugin plugin, boolean ignoreCancelled) -
方法概要
修饰符和类型方法说明void
Calls the event executorGets the listener for this registrationGets the plugin for this registrationGets the priority for this registrationboolean
Whether this listener accepts cancelled events
-
构造器详细资料
-
RegisteredListener
-
-
方法详细资料
-
getListener
Gets the listener for this registration- 返回:
- Registered Listener
-
getPlugin
Gets the plugin for this registration- 返回:
- Registered Plugin
-
getPriority
Gets the priority for this registration- 返回:
- Registered Priority
-
callEvent
Calls the event executor- 参数:
event
- The event- 抛出:
EventException
- If an event handler throws an exception.
-
isIgnoringCancelled
public boolean isIgnoringCancelled()Whether this listener accepts cancelled events- 返回:
- True when ignoring cancelled events
-