Class AnnotationParser<S>

java.lang.Object
io.github.mqzn.commands.AnnotationParser<S>

public final class AnnotationParser<S> extends Object
  • Field Details

  • Constructor Details

    • AnnotationParser

      public AnnotationParser(@NotNull @NotNull CommandManager<?,S> manager)
  • Method Details

    • parse

      public <E extends Enum<E>, C, CO> void parse(CO annotatedCommand)
      Parses the annotated command into a command then registers it directly through the registered command manager !
      Type Parameters:
      C - the type of the command class
      Parameters:
      annotatedCommand - the command instance to register