public class ObjectiveCriteriaArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ScoreCriteria>
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
OBJECTIVE_INVALID_CRITERIA |
Modifier | Constructor and Description |
---|---|
private |
ObjectiveCriteriaArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static ScoreCriteria |
getObjectiveCriteria(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_) |
<T> java.lang.String |
makeStatName(StatType<T> type,
java.lang.Object value) |
static ObjectiveCriteriaArgument |
objectiveCriteria() |
ScoreCriteria |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static final java.util.Collection<java.lang.String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType OBJECTIVE_INVALID_CRITERIA
public static ObjectiveCriteriaArgument objectiveCriteria()
public static ScoreCriteria getObjectiveCriteria(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name)
public ScoreCriteria parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreCriteria>
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<ScoreCriteria>
public <T> java.lang.String makeStatName(StatType<T> type, java.lang.Object value)
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreCriteria>