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

Public Member Functions

 TimedRegisteredListener (final Listener pluginListener, final EventExecutor eventExecutor, final EventPriority eventPriority, final Plugin registeredPlugin, final boolean listenCancelled)
void callEvent (Event event) throws EventException
void reset ()
int getCount ()
long getTotalTime ()
Class<?extends EventgetEventClass ()
boolean hasMultiple ()
- Public Member Functions inherited from org.bukkit.plugin.RegisteredListener
 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

Extends RegisteredListener to include timing information

Definition at line 11 of file TimedRegisteredListener.java.

Member Function Documentation

int org.bukkit.plugin.TimedRegisteredListener.getCount ( )

Gets the total times this listener has been called

Times this listener has been called

Definition at line 60 of file TimedRegisteredListener.java.

60  {
61  return count;
62  }
Class<? extends Event> org.bukkit.plugin.TimedRegisteredListener.getEventClass ( )

Gets the class of the events this listener handled. If it handled multiple classes of event, the closest shared superclass will be returned, such that for any event this listener has handled, this.getEventClass().isAssignableFrom(event.getClass()) and no class this.getEventClass().isAssignableFrom(clazz) && this.getEventClass() != clazz && event.getClass().isAssignableFrom(clazz) for all handled events.

the event class handled by this RegisteredListener

Definition at line 84 of file TimedRegisteredListener.java.

84  {
85  return eventClass;
86  }
long org.bukkit.plugin.TimedRegisteredListener.getTotalTime ( )

Gets the total time calls to this listener have taken

Total time for all calls of this listener

Definition at line 69 of file TimedRegisteredListener.java.

69  {
70  return totalTime;
71  }
boolean org.bukkit.plugin.TimedRegisteredListener.hasMultiple ( )

Gets whether this listener has handled multiple events, such that for some two events, eventA.getClass() != eventB.getClass().

true if this listener has handled multiple events

Definition at line 94 of file TimedRegisteredListener.java.

94  {
95  return multiple;
96  }
void org.bukkit.plugin.TimedRegisteredListener.reset ( )

Resets the call count and total time for this listener

Definition at line 50 of file TimedRegisteredListener.java.

50  {
51  count = 0;
52  totalTime = 0;
53  }

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