Class Event

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

public abstract class Event extends Object
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 Details

    • Event

      public Event()
  • Method Details

    • isCancelled

      public boolean isCancelled()
    • setCancelled

      public void setCancelled()
    • setCancelled

      public void setCancelled(boolean value)