public class RegisteredListener extends Object
Constructor and Description |
---|
RegisteredListener(@NotNull Listener listener,
@NotNull EventExecutor executor,
@NotNull EventPriority priority,
@NotNull Plugin plugin,
boolean ignoreCancelled) |
Modifier and Type | Method and Description |
---|---|
void |
callEvent(@NotNull Event event)
Calls the event executor
|
@NotNull Listener |
getListener()
Gets the listener for this registration
|
@NotNull Plugin |
getPlugin()
Gets the plugin for this registration
|
@NotNull EventPriority |
getPriority()
Gets the priority for this registration
|
boolean |
isIgnoringCancelled()
Whether this listener accepts cancelled events
|
@NotNull public @NotNull Listener getListener()
@NotNull public @NotNull Plugin getPlugin()
@NotNull public @NotNull EventPriority getPriority()
public void callEvent(@NotNull @NotNull Event event) throws EventException
event
- The eventEventException
- If an event handler throws an exception.public boolean isIgnoringCancelled()
Copyright © 2021. All rights reserved.