Package dev.jorel.commandapi.arguments
Class ProfileArgumentType
java.lang.Object
dev.jorel.commandapi.arguments.ProfileArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ProfileArgumentType.ProfileSelector>
public class ProfileArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ProfileArgumentType.ProfileSelector>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final ProfileArgumentTypestatic final Parser<ProfileArgumentType.ProfileSelector> -
Method Summary
Modifier and TypeMethodDescriptionstatic List<? extends org.bukkit.profile.PlayerProfile> getProfiles(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples
-
Field Details
-
INSTANCE
-
ERROR_UNKNOWN_PLAYER
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_UNKNOWN_PLAYER -
parser
-
-
Method Details
-
parse
public ProfileArgumentType.ProfileSelector parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<ProfileArgumentType.ProfileSelector>- 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<ProfileArgumentType.ProfileSelector>
-
getProfiles
public static List<? extends org.bukkit.profile.PlayerProfile> getProfiles(com.mojang.brigadier.context.CommandContext<MockCommandSource> cmdCtx, String key) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-