Class GeneratedEventClass
java.lang.Object
me.lucko.luckperms.common.event.gen.GeneratedEventClass
Holds the generated event class for a given type of
LuckPermsEvent.-
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratedEventClassGenerate aGeneratedEventClassfor the giveneventtype.net.luckperms.api.event.LuckPermsEventnewInstance(net.luckperms.api.LuckPerms api, Object... properties) Creates a new instance of the event class.static voidPre-generatesGeneratedEventClasses for known event types.
-
Method Details
-
generate
public static GeneratedEventClass generate(Class<? extends net.luckperms.api.event.LuckPermsEvent> event) Generate aGeneratedEventClassfor the giveneventtype.- Parameters:
event- the event type- Returns:
- the generated class
-
preGenerate
public static void preGenerate()Pre-generatesGeneratedEventClasses for known event types. -
newInstance
public net.luckperms.api.event.LuckPermsEvent newInstance(net.luckperms.api.LuckPerms api, Object... properties) throws Throwable Creates a new instance of the event class.- Parameters:
api- an instance of the LuckPerms APIproperties- the event properties- Returns:
- the event instance
- Throws:
Throwable- if something goes wrong
-