程序包 org.bukkit.plugin

# 类 RegisteredListener

java.lang.Object
org.bukkit.plugin.RegisteredListener

直接已知子类:
  `TimedRegisteredListener`

public class RegisteredListener extends Object
Stores relevant information for plugin listeners

- ## 构造器概要

  构造器
  构造器
  说明
  `RegisteredListener(@NotNull Listener listener, @NotNull EventExecutor executor, @NotNull EventPriority priority, @NotNull Plugin plugin, boolean ignoreCancelled)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `callEvent(@NotNull Event event)`
  Calls the event executor
  `@NotNull Listener`
  `getListener()`
  Gets the listener for this registration
  `@NotNull Plugin`
  `getPlugin()`
  Gets the plugin for this registration
  `@NotNull EventPriority`
  `getPriority()`
  Gets the priority for this registration
  `boolean`
  `isIgnoringCancelled()`
  Whether this listener accepts cancelled events

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### RegisteredListener

    public RegisteredListener(@NotNull @NotNull Listener listener, @NotNull @NotNull EventExecutor executor, @NotNull @NotNull EventPriority priority, @NotNull @NotNull Plugin plugin, boolean ignoreCancelled)

- ## 方法详细资料

  - ### getListener

    @NotNull public @NotNull Listener getListener()
    Gets the listener for this registration
    返回:
      Registered Listener

  - ### getPlugin

    @NotNull public @NotNull Plugin getPlugin()
    Gets the plugin for this registration
    返回:
      Registered Plugin

  - ### getPriority

    @NotNull public @NotNull EventPriority getPriority()
    Gets the priority for this registration
    返回:
      Registered Priority

  - ### callEvent

    public void callEvent(@NotNull @NotNull Event event) throws EventException
    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