Class ScoreHolderArgument

java.lang.Object
net.minecraft.command.arguments.ScoreHolderArgument
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>

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

    • SUGGEST_SCORE_HOLDERS

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

      private static final Collection<String> EXAMPLES
    • ERROR_NO_RESULTS

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

      private final boolean multiple
  • Constructor Details

    • ScoreHolderArgument

      public ScoreHolderArgument(boolean p_i47968_1_)
  • Method Details

    • getName

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

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

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

      public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSource> p_197210_0_, String p_197210_1_, Supplier<Collection<String>> p_197210_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • scoreHolder

      public static ScoreHolderArgument scoreHolder()
    • scoreHolders

      public static ScoreHolderArgument scoreHolders()
    • 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 Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>