public class GameProfileArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
Modifier and Type | Class and Description |
---|---|
static interface |
GameProfileArgumentType.GameProfileArgument |
static class |
GameProfileArgumentType.SelectorBacked |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
UNKNOWN_PLAYER_EXCEPTION |
Constructor and Description |
---|
GameProfileArgumentType() |
Modifier and Type | Method and Description |
---|---|
static GameProfileArgumentType |
gameProfile() |
Collection<String> |
getExamples() |
static Collection<com.mojang.authlib.GameProfile> |
getProfileArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
String string) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
GameProfileArgumentType.GameProfileArgument |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNKNOWN_PLAYER_EXCEPTION
public static Collection<com.mojang.authlib.GameProfile> getProfileArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public static GameProfileArgumentType gameProfile()
public GameProfileArgumentType.GameProfileArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
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<GameProfileArgumentType.GameProfileArgument>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>