public class ObjectiveCriteriaArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_CRITERIA_EXCEPTION |
Modifier | Constructor and Description |
---|---|
private |
ObjectiveCriteriaArgumentType() |
Modifier and Type | Method and Description |
---|---|
static ScoreboardCriterion |
getCriteria(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
String string) |
Collection<String> |
getExamples() |
<T> String |
getStatName(StatType<T> stat,
Object value) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
static ObjectiveCriteriaArgumentType |
objectiveCriteria() |
ScoreboardCriterion |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_CRITERIA_EXCEPTION
public static ObjectiveCriteriaArgumentType objectiveCriteria()
public static ScoreboardCriterion getCriteria(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public ScoreboardCriterion parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
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<ScoreboardCriterion>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>