java.lang.Object
org.cloudburstmc.api.event.Event
- Direct Known Subclasses:
BlockEvent,CraftItemEvent,CreatureSpawnEvent,EntityEvent,InventoryEvent,LevelEvent,PlayerEvent,PotionEvent,ServerEvent,ServerInitializationEvent,ServerShutdownEvent,ServerStartEvent,VehicleEvent,WeatherEvent
Describes things that happens in the server.
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
isCancelled
public boolean isCancelled() -
setCancelled
public void setCancelled() -
setCancelled
public void setCancelled(boolean value)
-