Package de.presti.ree6.utils.data
Class CustomEventMapper
java.lang.Object
de.presti.ree6.utils.data.CustomEventMapper
A Mapper that maps an Event to a EventTyp.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<? extends net.dv8tion.jda.api.events.GenericEvent>
getClass
(de.presti.ree6.sql.entities.custom.CustomEventTyp typ) Get the event class for the given EventTyp.static de.presti.ree6.sql.entities.custom.CustomEventTyp
getEventTyp
(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz) Get the EventTyp for the given event class.static void
load()
Load the CustomEventMapper.
-
Field Details
-
Constructor Details
-
CustomEventMapper
public CustomEventMapper()
-
-
Method Details
-
load
public static void load()Load the CustomEventMapper. -
getEventTyp
public static de.presti.ree6.sql.entities.custom.CustomEventTyp getEventTyp(Class<? extends net.dv8tion.jda.api.events.GenericEvent> clazz) Get the EventTyp for the given event class.- Parameters:
clazz
- The event class.- Returns:
- The EventTyp.
-
getClass
public static Class<? extends net.dv8tion.jda.api.events.GenericEvent> getClass(de.presti.ree6.sql.entities.custom.CustomEventTyp typ) Get the event class for the given EventTyp.- Parameters:
typ
- The EventTyp.- Returns:
- The event class.
-