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 interfaceGameProfileArgumentType.GameProfileArgumentstatic classGameProfileArgumentType.SelectorBacked -
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeUNKNOWN_PLAYER_EXCEPTION -
Constructor Summary
Constructors Constructor Description GameProfileArgumentType() -
Method Summary
Modifier and Type Method Description static GameProfileArgumentTypegameProfile()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.GameProfileArgumentparse(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:
parsein 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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<GameProfileArgumentType.GameProfileArgument>
-