Class GenericEvent<T>

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.bus.api.GenericEvent<T>
Type Parameters:
T - The type to filter this generic event for
All Implemented Interfaces:
IGenericEvent<T>

@Deprecated(forRemoval=true) public class GenericEvent<T> extends Event implements IGenericEvent<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Use non-generic events instead, or another system.
Implements IGenericEvent to provide filterable events based on generic type data. Subclasses should extend this if they wish to expose a secondary type based filter (the generic type).
  • Constructor Details

    • GenericEvent

      public GenericEvent()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • GenericEvent

      protected GenericEvent(Class<T> type)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getGenericType

      public Type getGenericType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getGenericType in interface IGenericEvent<T>