TimedRegisteredListener

Extends RegisteredListener to include timing information

Constructors

Link copied to clipboard
public void TimedRegisteredListener(Listener pluginListener, EventExecutor eventExecutor, EventPriority eventPriority, Plugin registeredPlugin, boolean listenCancelled)

Properties

Link copied to clipboard
public int count
Link copied to clipboard
public Class<? extends Event> eventClass
Link copied to clipboard
public final Listener listener
Link copied to clipboard
public final Plugin plugin
Link copied to clipboard
public final EventPriority priority
Link copied to clipboard
public long totalTime

Functions

Link copied to clipboard
public void callEvent(Event event)
Calls the event executor
Link copied to clipboard
public int getCount()
Gets the total times this listener has been called
Link copied to clipboard
public Class<? extends Event> getEventClass()
Gets the class of the events this listener handled.
Link copied to clipboard
Gets the listener for this registration
Link copied to clipboard
public Plugin getPlugin()
Gets the plugin for this registration
Link copied to clipboard
Gets the priority for this registration
Link copied to clipboard
public long getTotalTime()
Gets the total time calls to this listener have taken
Link copied to clipboard
public boolean hasMultiple()
Gets whether this listener has handled multiple events, such that for some two events, eventA.getClass() != eventB.getClass().
Link copied to clipboard
public boolean isIgnoringCancelled()
Whether this listener accepts cancelled events
Link copied to clipboard
public void reset()
Resets the call count and total time for this listener