public class ScoreHolderArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
Modifier and Type | Class and Description |
---|---|
static interface |
ScoreHolderArgument.INameProvider |
static class |
ScoreHolderArgument.NameProvider |
static class |
ScoreHolderArgument.Serializer |
Modifier and Type | Field and Description |
---|---|
private boolean |
allowMultiple |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
EMPTY_EXCEPTION |
private static java.util.Collection<java.lang.String> |
EXAMPLES |
static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> |
SUGGEST_ENTITY_SELECTOR |
Constructor and Description |
---|
ScoreHolderArgument(boolean allowMultipleIn) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static java.util.Collection<java.lang.String> |
getScoreHolder(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static java.util.Collection<java.lang.String> |
getScoreHolder(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name,
java.util.function.Supplier<java.util.Collection<java.lang.String>> objectives) |
static java.util.Collection<java.lang.String> |
getScoreHolderNoObjectives(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
static java.lang.String |
getSingleScoreHolderNoObjectives(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
ScoreHolderArgument.INameProvider |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
static ScoreHolderArgument |
scoreHolder() |
static ScoreHolderArgument |
scoreHolders() |
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_ENTITY_SELECTOR
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EMPTY_EXCEPTION
private final boolean allowMultiple
public static java.lang.String getSingleScoreHolderNoObjectives(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.Collection<java.lang.String> getScoreHolderNoObjectives(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.Collection<java.lang.String> getScoreHolder(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static java.util.Collection<java.lang.String> getScoreHolder(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name, java.util.function.Supplier<java.util.Collection<java.lang.String>> objectives) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ScoreHolderArgument scoreHolder()
public static ScoreHolderArgument scoreHolders()
public ScoreHolderArgument.INameProvider parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
com.mojang.brigadier.exceptions.CommandSyntaxException
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>