Class ModIdArgument

java.lang.Object
net.neoforged.neoforge.server.command.ModIdArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<String>

public class ModIdArgument extends Object implements com.mojang.brigadier.arguments.ArgumentType<String>
  • Field Details

    • EXAMPLES

      private static final List<String> EXAMPLES
  • Constructor Details

    • ModIdArgument

      public ModIdArgument()
  • Method Details

    • modIdArgument

      public static ModIdArgument modIdArgument()
    • parse

      public String parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<String>
      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<String>
    • getExamples

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