Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.plugin.RegisteredListener Class Reference
Inheritance diagram for org.bukkit.plugin.RegisteredListener:
org.bukkit.plugin.TimedRegisteredListener

Public Member Functions

 RegisteredListener (final Listener listener, final EventExecutor executor, final EventPriority priority, final Plugin plugin, final boolean ignoreCancelled)
 
Listener getListener ()
 
Plugin getPlugin ()
 
EventPriority getPriority ()
 
void callEvent (final Event event) throws EventException
 
boolean isIgnoringCancelled ()
 

Detailed Description

Stores relevant information for plugin listeners

Definition at line 8 of file RegisteredListener.java.

Member Function Documentation

void org.bukkit.plugin.RegisteredListener.callEvent ( final Event  event) throws EventException

Calls the event executor

Parameters
eventThe event
Exceptions
EventExceptionIf an event handler throws an exception.

Definition at line 56 of file RegisteredListener.java.

References org.bukkit.plugin.RegisteredListener.isIgnoringCancelled().

56  {
57  if (event instanceof Cancellable){
58  if (((Cancellable) event).isCancelled() && isIgnoringCancelled()){
59  return;
60  }
61  }
62  executor.execute(listener, event);
63  }
Listener org.bukkit.plugin.RegisteredListener.getListener ( )

Gets the listener for this registration

Returns
Registered Listener

Definition at line 28 of file RegisteredListener.java.

28  {
29  return listener;
30  }
Plugin org.bukkit.plugin.RegisteredListener.getPlugin ( )

Gets the plugin for this registration

Returns
Registered Plugin

Definition at line 37 of file RegisteredListener.java.

37  {
38  return plugin;
39  }
EventPriority org.bukkit.plugin.RegisteredListener.getPriority ( )

Gets the priority for this registration

Returns
Registered Priority

Definition at line 46 of file RegisteredListener.java.

Referenced by org.bukkit.event.HandlerList.unregister().

46  {
47  return priority;
48  }
boolean org.bukkit.plugin.RegisteredListener.isIgnoringCancelled ( )

Whether this listener accepts cancelled events

Returns
True when ignoring cancelled events

Definition at line 70 of file RegisteredListener.java.

Referenced by org.bukkit.plugin.RegisteredListener.callEvent().

70  {
71  return ignoreCancelled;
72  }

The documentation for this class was generated from the following file: