Class GeneratedEventClass

java.lang.Object
me.lucko.luckperms.common.event.gen.GeneratedEventClass

public class GeneratedEventClass extends Object
Holds the generated event class for a given type of LuckPermsEvent.
  • Method Details

    • generate

      public static GeneratedEventClass generate(Class<? extends net.luckperms.api.event.LuckPermsEvent> event)
      Generate a GeneratedEventClass for the given event type.
      Parameters:
      event - the event type
      Returns:
      the generated class
    • preGenerate

      public static void preGenerate()
      Pre-generates GeneratedEventClasses 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 API
      properties - the event properties
      Returns:
      the event instance
      Throws:
      Throwable - if something goes wrong