Class ScoreHolderArgument

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

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

    • SUGGEST_SCORE_HOLDERS

      public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> 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

      final boolean multiple
  • Constructor Details

    • ScoreHolderArgument

      public ScoreHolderArgument(boolean p_108216_)
  • Method Details

    • getName

      public static String getName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108224_, String p_108225_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNames

      public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108244_, String p_108245_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNamesWithDefaultWildcard

      public static Collection<String> getNamesWithDefaultWildcard(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108247_, String p_108248_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getNames

      public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108227_, String p_108228_, Supplier<Collection<String>> p_108229_) 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.Result parse(com.mojang.brigadier.StringReader p_108219_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.Result>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

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