Class ModIdArgument

  • All Implemented Interfaces:
    com.mojang.brigadier.arguments.ArgumentType<java.lang.String>

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

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.lang.String> EXAMPLES  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModIdArgument()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.String> getExamples()  
      <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions​(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)  
      static ModIdArgument modIdArgument()  
      java.lang.String parse​(com.mojang.brigadier.StringReader reader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXAMPLES

        private static final java.util.List<java.lang.String> EXAMPLES
    • Constructor Detail

      • ModIdArgument

        public ModIdArgument()
    • Method Detail

      • parse

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

        public <S> java.util.concurrent.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<java.lang.String>
      • getExamples

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