T
- Type of this eventpublic class AsyncEvent<T> extends Event
Constructor and Description |
---|
AsyncEvent(Callback<T> done) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
void |
completeIntent(Plugin plugin)
Notifies this event that this plugin has completed an intent and wishes
to let the event proceed once all intents have been completed.
|
boolean |
equals(Object o) |
int |
hashCode() |
void |
postCall()
Method called after this event has been dispatched to all handlers.
|
void |
registerIntent(Plugin plugin)
Register an intent that this plugin will continue to perform work on a
background task, and wishes to let the event proceed once the registered
background task has completed.
|
String |
toString() |
public void postCall()
Event
public void registerIntent(Plugin plugin)
plugin
- the plugin registering this intentpublic void completeIntent(Plugin plugin)
plugin
- a plugin which has an intent registered for this eventprotected boolean canEqual(Object other)
Copyright © 2012–2020 SpigotMC. All rights reserved.