Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
LONG_NAME_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
READONLY_OBJECTIVE_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_OBJECTIVE_EXCEPTION |
Constructor and Description |
---|
ObjectiveArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
static ScoreboardObjective |
getObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
static ScoreboardObjective |
getWritableObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
static ObjectiveArgumentType |
objective() |
String |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_OBJECTIVE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType READONLY_OBJECTIVE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType LONG_NAME_EXCEPTION
public static ObjectiveArgumentType objective()
public static ScoreboardObjective getObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public static ScoreboardObjective getWritableObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public String parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<String>
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<String>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<String>