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 ec
intermediary net/minecraft/class_2243
named net/minecraft/command/argument/TeamArgumentType
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
UNKNOWN_TEAM_EXCEPTION
-
Constructor Summary
Constructors Constructor Description TeamArgumentType()
-
Method Summary
Modifier and Type Method Description Collection<String>
getExamples()
static 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)
String
parse(com.mojang.brigadier.StringReader stringReader)
static TeamArgumentType
team()
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lec;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
Lec;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
Lec;a()Lec;
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
Lec;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldjq;
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
Lec;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
Lec;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>
- Mappings:
Namespace Name Mixin selector official getExamples
Lec;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2243;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/TeamArgumentType;getExamples()Ljava/util/Collection;
-