public abstract class Event extends Object
Things that happens in the server is called a event. Define a procedure that should be executed when a event happens, this procedure is called a listener.
When Nukkit is calling a handler, the event needed to listen is judged by the type of the parameter.
For the way to implement a listener, see: {Listener}
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelled() |
void |
setCancelled() |
void |
setCancelled(boolean value) |
Copyright © 2021. All rights reserved.