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
official en
intermediary net/minecraft/class_2243
named net/minecraft/command/argument/TeamArgumentType
  • Field Details

    • EXAMPLES

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

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

    • TeamArgumentType

      public TeamArgumentType()
  • Method Details

    • team

      public static TeamArgumentType team()
      Mappings:
      Namespace Name Mixin selector
      official a Len;a()Len;
      intermediary method_9482 Lnet/minecraft/class_2243;method_9482()Lnet/minecraft/class_2243;
      named team Lnet/minecraft/command/argument/TeamArgumentType;team()Lnet/minecraft/command/argument/TeamArgumentType;
    • 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
      official a Len;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldov;
      intermediary method_9480 Lnet/minecraft/class_2243;method_9480(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_268;
      named getTeam Lnet/minecraft/command/argument/TeamArgumentType;getTeam(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/scoreboard/Team;
    • 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
      official a Len;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
      intermediary method_9483 Lnet/minecraft/class_2243;method_9483(Lcom/mojang/brigadier/StringReader;)Ljava/lang/String;
      named parse Lnet/minecraft/command/argument/TeamArgumentType;parse(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
      official listSuggestions Len;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;
      named listSuggestions Lnet/minecraft/command/argument/TeamArgumentType;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>