Class ScoreHolderArgument

    • Field Detail

      • SUGGEST_SCORE_HOLDERS

        public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_SCORE_HOLDERS
      • EXAMPLES

        private static final java.util.Collection<java.lang.String> EXAMPLES
      • ERROR_NO_RESULTS

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_RESULTS
      • multiple

        private final boolean multiple
    • Constructor Detail

      • ScoreHolderArgument

        public ScoreHolderArgument​(boolean p_i47968_1_)
    • Method Detail

      • getName

        public static java.lang.String getName​(com.mojang.brigadier.context.CommandContext<CommandSource> p_197211_0_,
                                               java.lang.String p_197211_1_)
                                        throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getNames

        public static java.util.Collection<java.lang.String> getNames​(com.mojang.brigadier.context.CommandContext<CommandSource> p_197213_0_,
                                                                      java.lang.String p_197213_1_)
                                                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getNamesWithDefaultWildcard

        public static java.util.Collection<java.lang.String> getNamesWithDefaultWildcard​(com.mojang.brigadier.context.CommandContext<CommandSource> p_211707_0_,
                                                                                         java.lang.String p_211707_1_)
                                                                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getNames

        public static java.util.Collection<java.lang.String> getNames​(com.mojang.brigadier.context.CommandContext<CommandSource> p_197210_0_,
                                                                      java.lang.String p_197210_1_,
                                                                      java.util.function.Supplier<java.util.Collection<java.lang.String>> p_197210_2_)
                                                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • parse

        public ScoreHolderArgument.INameProvider parse​(com.mojang.brigadier.StringReader p_parse_1_)
                                                throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Specified by:
        parse in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getExamples

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