Package net.minecraft.command.argument
Class GameProfileArgumentType
java.lang.Object
net.minecraft.command.argument.GameProfileArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
public class GameProfileArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GameProfileArgumentType.GameProfileArgument
static class
GameProfileArgumentType.SelectorBacked
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
UNKNOWN_PLAYER_EXCEPTION
-
Constructor Summary
Constructors Constructor Description GameProfileArgumentType()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
-
UNKNOWN_PLAYER_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType UNKNOWN_PLAYER_EXCEPTION
-
-
Constructor Details
-
GameProfileArgumentType
public GameProfileArgumentType()
-
-
Method Details
-
getProfileArgument
public static Collection<com.mojang.authlib.GameProfile> getProfileArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
gameProfile
-
parse
public GameProfileArgumentType.GameProfileArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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<GameProfileArgumentType.GameProfileArgument>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
-