Interface GenericEvent<T>

Type Parameters:
T - The generic type
All Superinterfaces:
Event
All Known Subinterfaces:
CriterionEvent.Trigger<C>, EngineLifecycleEvent<E>, ProvideServiceEvent<T>, ProvideServiceEvent.EngineScoped<T>, ProvideServiceEvent.GameScoped<T>, RegisterCommandEvent<C>, RegisterDataPackValueEvent<T>, RegisterRegistryEvent.EngineScoped<E>, RegisterRegistryValueEvent.EngineScoped<E>, ScheduleBlockUpdateEvent<T>, StartedEngineEvent<E>, StartingEngineEvent<E>, StoppingEngineEvent<E>

public interface GenericEvent<T> extends Event
All Events that require a generic type should implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.leangen.geantyref.TypeToken<T>
    Gets the generic type.

    Methods inherited from interface org.spongepowered.api.event.Event

    cause, context, source
  • Method Details

    • paramType

      io.leangen.geantyref.TypeToken<T> paramType()
      Gets the generic type.
      Returns:
      The type token