public interface Event
This is a marker interface, which must be implemented by any event used with the Sponge event bus.
Modifier and Type | Method and Description |
---|---|
Cause |
getCause()
Gets the cause for the event.
|
default EventContext |
getContext()
Gets the context of the event.
|
default Object |
getSource()
Gets the source of the event (the first object in the cause).
|
Cause getCause()
Optional<Player> optPlayer = event.getCause().first(Player.class);
default Object getSource()
default EventContext getContext()