Class Event

java.lang.Object
net.neoforged.bus.api.Event

public abstract class Event extends Object
Base Event class that all other events are derived from.
Note on abstract events
Listeners cannot be registered to an abstract event class.

This is useful for classes that extend Event with more data and methods, but should never be listened to directly.

For example, an event with Pre and Post subclasses might want to be declared as abstract to prevent user accidentally listening to both.

All the parents of abstract event classes until Event must also be abstract.

  • Constructor Details

    • Event

      protected Event()