类 RegisteredListener

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

public class RegisteredListener extends Object
Stores relevant information for plugin listeners
  • 构造器详细资料

  • 方法详细资料

    • getListener

      public Listener getListener()
      Gets the listener for this registration
      返回:
      Registered Listener
    • getPlugin

      public Plugin getPlugin()
      Gets the plugin for this registration
      返回:
      Registered Plugin
    • getPriority

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

      public void callEvent(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