类 RegisteredListener

java.lang.Object
org.bukkit.plugin.RegisteredListener
直接已知子类:
TimedRegisteredListener

public class RegisteredListener extends Object
存储插件监听器的相关信息.
  • 构造器详细资料

  • 方法详细资料

    • getListener

      @NotNull public @NotNull Listener getListener()
      获取此注册的监听器.

      原文: Gets the listener for this registration

      返回:
      已注册的监听器
    • getPlugin

      @NotNull public @NotNull Plugin getPlugin()
      获取此注册的插件.

      原文: Gets the plugin for this registration

      返回:
      已注册的插件
    • getPriority

      @NotNull public @NotNull EventPriority getPriority()
      获取此注册的优先级.

      原文: Gets the priority for this registration

      返回:
      已注册的优先级
    • callEvent

      public void callEvent(@NotNull @NotNull Event event) throws EventException
      调用事件执行器.

      原文: Calls the event executor

      参数:
      event - 事件对象
      抛出:
      EventException - 如果事件处理器抛出异常
    • isIgnoringCancelled

      public boolean isIgnoringCancelled()
      此监听器是否忽略已取消的事件.

      原文: Whether this listener accepts cancelled events

      返回:
      当忽略已取消事件时返回 true