Class ScoreHolderArgumentType

java.lang.Object
net.minecraft.command.argument.ScoreHolderArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgumentType.ScoreHolder>

public class ScoreHolderArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgumentType.ScoreHolder>
Mappings:
Namespace Name
official eo
intermediary net/minecraft/class_2233
named net/minecraft/command/argument/ScoreHolderArgumentType
  • Field Details

    • SUGGESTION_PROVIDER

      public static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
      Mappings:
      Namespace Name Mixin selector
      official a Leo;a:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      intermediary field_9951 Lnet/minecraft/class_2233;field_9951:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
      named SUGGESTION_PROVIDER Lnet/minecraft/command/argument/ScoreHolderArgumentType;SUGGESTION_PROVIDER:Lcom/mojang/brigadier/suggestion/SuggestionProvider;
    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official b Leo;b:Ljava/util/Collection;
      intermediary field_9948 Lnet/minecraft/class_2233;field_9948:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/ScoreHolderArgumentType;EXAMPLES:Ljava/util/Collection;
    • EMPTY_SCORE_HOLDER_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EMPTY_SCORE_HOLDER_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official c Leo;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9950 Lnet/minecraft/class_2233;field_9950:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named EMPTY_SCORE_HOLDER_EXCEPTION Lnet/minecraft/command/argument/ScoreHolderArgumentType;EMPTY_SCORE_HOLDER_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • multiple

      final boolean multiple
      Mappings:
      Namespace Name Mixin selector
      official d Leo;d:Z
      intermediary field_9949 Lnet/minecraft/class_2233;field_9949:Z
      named multiple Lnet/minecraft/command/argument/ScoreHolderArgumentType;multiple:Z
  • Constructor Details

    • ScoreHolderArgumentType

      public ScoreHolderArgumentType(boolean multiple)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leo;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_2233;<init>(Z)V
      named <init> Lnet/minecraft/command/argument/ScoreHolderArgumentType;<init>(Z)V
  • Method Details

    • getScoreHolder

      public static String getScoreHolder(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Leo;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_9452 Lnet/minecraft/class_2233;method_9452(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/String;
      named getScoreHolder Lnet/minecraft/command/argument/ScoreHolderArgumentType;getScoreHolder(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/lang/String;
    • getScoreHolders

      public static Collection<String> getScoreHolders(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official b Leo;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      intermediary method_9458 Lnet/minecraft/class_2233;method_9458(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      named getScoreHolders Lnet/minecraft/command/argument/ScoreHolderArgumentType;getScoreHolders(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
    • getScoreboardScoreHolders

      public static Collection<String> getScoreboardScoreHolders(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official c Leo;c(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      intermediary method_9449 Lnet/minecraft/class_2233;method_9449(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
      named getScoreboardScoreHolders Lnet/minecraft/command/argument/ScoreHolderArgumentType;getScoreboardScoreHolders(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/Collection;
    • getScoreHolders

      public static Collection<String> getScoreHolders(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Supplier<Collection<String>> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Leo;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/Collection;
      intermediary method_9450 Lnet/minecraft/class_2233;method_9450(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/Collection;
      named getScoreHolders Lnet/minecraft/command/argument/ScoreHolderArgumentType;getScoreHolders(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/Collection;
    • scoreHolder

      public static ScoreHolderArgumentType scoreHolder()
      Mappings:
      Namespace Name Mixin selector
      official a Leo;a()Leo;
      intermediary method_9447 Lnet/minecraft/class_2233;method_9447()Lnet/minecraft/class_2233;
      named scoreHolder Lnet/minecraft/command/argument/ScoreHolderArgumentType;scoreHolder()Lnet/minecraft/command/argument/ScoreHolderArgumentType;
    • scoreHolders

      public static ScoreHolderArgumentType scoreHolders()
      Mappings:
      Namespace Name Mixin selector
      official b Leo;b()Leo;
      intermediary method_9451 Lnet/minecraft/class_2233;method_9451()Lnet/minecraft/class_2233;
      named scoreHolders Lnet/minecraft/command/argument/ScoreHolderArgumentType;scoreHolders()Lnet/minecraft/command/argument/ScoreHolderArgumentType;
    • parse

      public ScoreHolderArgumentType.ScoreHolder parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgumentType.ScoreHolder>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Leo;a(Lcom/mojang/brigadier/StringReader;)Leo$b;
      intermediary method_9453 Lnet/minecraft/class_2233;method_9453(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2233$class_2234;
      named parse Lnet/minecraft/command/argument/ScoreHolderArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ScoreHolderArgumentType$ScoreHolder;
    • getExamples

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