Class GameProfileArgument
java.lang.Object
net.minecraft.commands.arguments.GameProfileArgument
- All Implemented Interfaces:
ArgumentType<GameProfileArgument.Result>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GameProfileArgumentstatic Collection<NameAndId> getGameProfiles(CommandContext<CommandSourceStack> source, String name) listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) parse(StringReader reader) private static GameProfileArgument.Resultparse(StringReader reader, boolean allowSelectors) parse(StringReader reader, S source)
-
Field Details
-
EXAMPLES
-
ERROR_UNKNOWN_PLAYER
-
-
Constructor Details
-
GameProfileArgument
public GameProfileArgument()
-
-
Method Details
-
getGameProfiles
public static Collection<NameAndId> getGameProfiles(CommandContext<CommandSourceStack> source, String name) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
gameProfile
-
parse
public <S> GameProfileArgument.Result parse(StringReader reader, S source) throws CommandSyntaxException - Specified by:
parsein interfaceArgumentType<GameProfileArgument.Result>- Throws:
CommandSyntaxException
-
parse
- Specified by:
parsein interfaceArgumentType<GameProfileArgument.Result>- Throws:
CommandSyntaxException
-
parse
private static GameProfileArgument.Result parse(StringReader reader, boolean allowSelectors) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> contextBuilder, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<GameProfileArgument.Result>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<GameProfileArgument.Result>
-