Package net.minecraft.command.argument
Class ObjectiveCriteriaArgumentType
java.lang.Object
net.minecraft.command.argument.ObjectiveCriteriaArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
public class ObjectiveCriteriaArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_CRITERIA_EXCEPTION -
Constructor Summary
Constructors Modifier Constructor Description privateObjectiveCriteriaArgumentType() -
Method Summary
Modifier and Type Method Description static ScoreboardCriteriongetCriteria(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)Collection<String>getExamples()<T> StringgetStatName(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 ObjectiveCriteriaArgumentTypeobjectiveCriteria()ScoreboardCriterionparse(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
-
INVALID_CRITERIA_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_CRITERIA_EXCEPTION
-
-
Constructor Details
-
ObjectiveCriteriaArgumentType
private ObjectiveCriteriaArgumentType()
-
-
Method Details
-
objectiveCriteria
-
getCriteria
public static ScoreboardCriterion getCriteria(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
parse
public ScoreboardCriterion parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
-
getStatName
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreboardCriterion>
-