public class ObjectiveArgument
extends java.lang.Object
implements com.mojang.brigadier.arguments.ArgumentType<java.lang.String>
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
OBJECTIVE_NAME_TOO_LONG |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
OBJECTIVE_NOT_FOUND |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
OBJECTIVE_READ_ONLY |
Constructor and Description |
---|
ObjectiveArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static ScoreObjective |
getObjective(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static ScoreObjective |
getWritableObjective(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
static ObjectiveArgument |
objective() |
java.lang.String |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType OBJECTIVE_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType OBJECTIVE_READ_ONLY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType OBJECTIVE_NAME_TOO_LONG
public static ObjectiveArgument objective()
public static ScoreObjective getObjective(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ScoreObjective getWritableObjective(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.lang.String parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.String>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.String>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<java.lang.String>