Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_TEAM_EXCEPTION |
Constructor and Description |
---|
TeamArgumentType() |
Modifier and Type | Method and 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() |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TEAM_EXCEPTION
public static TeamArgumentType team()
public static Team getTeam(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public String parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<String>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<String>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<String>