Class BaseModule.BaseModuleArgument

java.lang.Object
dev.boze.api.client.module.BaseModule.BaseModuleArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BaseModule>
Enclosing interface:
BaseModule

public static class BaseModule.BaseModuleArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<BaseModule>
Command argument for base modules
  • Constructor Details

    • BaseModuleArgument

      public BaseModuleArgument()
  • Method Details

    • module

      public static BaseModule.BaseModuleArgument module()
      Creates a new BaseModuleArgument for parsing module names
      Returns:
      A new BaseModuleArgument instance
    • getModule

      public static BaseModule getModule(com.mojang.brigadier.context.CommandContext<?> context, String name)
      Gets a BaseModule from a command context
      Parameters:
      context - The command context
      name - The name of the argument
      Returns:
      The parsed BaseModule
    • parse

      public BaseModule parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<BaseModule>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<BaseModule>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<BaseModule>