org.bukkit.plugin
Class RegisteredListener

java.lang.Object
  extended by org.bukkit.plugin.RegisteredListener
Direct Known Subclasses:
TimedRegisteredListener

public class RegisteredListener
extends Object

Stores relevant information for plugin listeners


Constructor Summary
RegisteredListener(Listener listener, EventExecutor executor, EventPriority priority, Plugin plugin, boolean ignoreCancelled)
           
 
Method Summary
 void callEvent(Event event)
          Calls the event executor
 Listener getListener()
          Gets the listener for this registration
 Plugin getPlugin()
          Gets the plugin for this registration
 EventPriority getPriority()
          Gets the priority for this registration
 boolean isIgnoringCancelled()
          Whether this listener accepts cancelled events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisteredListener

public RegisteredListener(Listener listener,
                          EventExecutor executor,
                          EventPriority priority,
                          Plugin plugin,
                          boolean ignoreCancelled)
Method Detail

getListener

public Listener getListener()
Gets the listener for this registration

Returns:
Registered Listener

getPlugin

public Plugin getPlugin()
Gets the plugin for this registration

Returns:
Registered Plugin

getPriority

public EventPriority getPriority()
Gets the priority for this registration

Returns:
Registered Priority

callEvent

public void callEvent(Event event)
               throws EventException
Calls the event executor

Parameters:
event - The event
Throws:
EventException - If an event handler throws an exception.

isIgnoringCancelled

public boolean isIgnoringCancelled()
Whether this listener accepts cancelled events

Returns:
True when ignoring cancelled events


Copyright © 2014. All rights reserved.