Package org.bukkit.plugin
Class RegisteredListener
java.lang.Object
org.bukkit.plugin.RegisteredListener
- Direct Known Subclasses:
TimedRegisteredListener
Stores relevant information for plugin listeners
-
Constructor Summary
ConstructorDescriptionRegisteredListener
(@NotNull Listener listener, @NotNull EventExecutor executor, @NotNull EventPriority priority, @NotNull Plugin plugin, boolean ignoreCancelled) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Calls the event executorGet the executor for this registration.Gets the listener for this registrationGets the plugin for this registrationGets the priority for this registrationboolean
Whether this listener accepts cancelled eventstoString()
-
Constructor Details
-
RegisteredListener
-
-
Method Details
-
getListener
Gets the listener for this registration- Returns:
- Registered Listener
-
getPlugin
Gets the plugin for this registration- Returns:
- Registered Plugin
-
getPriority
Gets the priority for this registration- Returns:
- Registered Priority
-
callEvent
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
-
getExecutor
Get the executor for this registration.- Returns:
- executor
-
toString
-