Class EventTypeImpl<T>

java.lang.Object
com.mewna.catnip.shard.event.EventTypeImpl<T>
Type Parameters:
T - Type of the event.
All Implemented Interfaces:
EventType<T>

public class EventTypeImpl<T> extends Object implements EventType<T>
Since:
10/6/18.
Author:
natanbc
  • Method Details

    • event

      public static <T> EventType<T> event(@Nonnull String key, @Nonnull Class<T> payloadClass)
    • notFired

      public static EventType<Void> notFired(@Nonnull String key)
    • key

      public String key()
      Description copied from interface: EventType
      Key used in the event bus.
      Specified by:
      key in interface EventType<T>
      Returns:
      Key where this event is fired in the bus.
    • payloadClass

      public Class<T> payloadClass()
      Description copied from interface: EventType
      Class of the event payload.
      Specified by:
      payloadClass in interface EventType<T>
      Returns:
      Class of the payload fired for this event.