Class TeamArgumentType

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

public class TeamArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<String>
Mappings:
Namespace Name
named net/minecraft/command/argument/TeamArgumentType
intermediary net/minecraft/class_2243
official gb
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/TeamArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_9964 Lnet/minecraft/class_2243;field_9964:Ljava/util/Collection;
      official a Lgb;a:Ljava/util/Collection;
    • UNKNOWN_TEAM_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TEAM_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named UNKNOWN_TEAM_EXCEPTION Lnet/minecraft/command/argument/TeamArgumentType;UNKNOWN_TEAM_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_9963 Lnet/minecraft/class_2243;field_9963:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Lgb;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • TeamArgumentType

      public TeamArgumentType()
  • Method Details

    • team

      public static TeamArgumentType team()
      Mappings:
      Namespace Name Mixin selector
      named team Lnet/minecraft/command/argument/TeamArgumentType;team()Lnet/minecraft/command/argument/TeamArgumentType;
      intermediary method_9482 Lnet/minecraft/class_2243;method_9482()Lnet/minecraft/class_2243;
      official a Lgb;a()Lgb;
    • getTeam

      public static Team getTeam(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
      named getTeam Lnet/minecraft/command/argument/TeamArgumentType;getTeam(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
      intermediary method_9480 Lnet/minecraft/class_2243;method_9480(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_268;
      official a Lgb;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lewr;
    • parse

      public String parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<String>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/TeamArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
      intermediary method_9483 Lnet/minecraft/class_2243;method_9483(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
      official a Lgb;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
    • listSuggestions

      public <S> 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<String>
      Mappings:
      Namespace Name Mixin selector
      named listSuggestions Lnet/minecraft/command/argument/TeamArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_2243;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      official listSuggestions Lgb;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

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