Package net.minecraft.command.argument
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 ex
intermediary net/minecraft/class_2243
named net/minecraft/command/argument/TeamArgumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Team
getTeam
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader) static TeamArgumentType
team()
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lex;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
Lex;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
- Mappings:
Namespace Name Mixin selector official a
Lex;a()Lex;
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
Lex;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldwp;
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 interfacecom.mojang.brigadier.arguments.ArgumentType<String>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lex;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 interfacecom.mojang.brigadier.arguments.ArgumentType<String>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Lex;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
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<String>
-