Package net.minecraft.command.arguments
Class ScoreHolderArgument
java.lang.Object
net.minecraft.command.arguments.ScoreHolderArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
public class ScoreHolderArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Collection<String>
private final boolean
static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getName
(com.mojang.brigadier.context.CommandContext<CommandSource> p_197211_0_, String p_197211_1_) static Collection<String>
getNames
(com.mojang.brigadier.context.CommandContext<CommandSource> p_197213_0_, String p_197213_1_) static Collection<String>
getNames
(com.mojang.brigadier.context.CommandContext<CommandSource> p_197210_0_, String p_197210_1_, Supplier<Collection<String>> p_197210_2_) static Collection<String>
getNamesWithDefaultWildcard
(com.mojang.brigadier.context.CommandContext<CommandSource> p_211707_0_, String p_211707_1_) parse
(com.mojang.brigadier.StringReader p_parse_1_) static ScoreHolderArgument
static ScoreHolderArgument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
SUGGEST_SCORE_HOLDERS
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSource> SUGGEST_SCORE_HOLDERS -
EXAMPLES
-
ERROR_NO_RESULTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_RESULTS -
multiple
private final boolean multiple
-
-
Constructor Details
-
ScoreHolderArgument
public ScoreHolderArgument(boolean p_i47968_1_)
-
-
Method Details
-
getName
public static String getName(com.mojang.brigadier.context.CommandContext<CommandSource> p_197211_0_, String p_197211_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNames
public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSource> p_197213_0_, String p_197213_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNamesWithDefaultWildcard
public static Collection<String> getNamesWithDefaultWildcard(com.mojang.brigadier.context.CommandContext<CommandSource> p_211707_0_, String p_211707_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNames
public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSource> p_197210_0_, String p_197210_1_, Supplier<Collection<String>> p_197210_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
scoreHolder
-
scoreHolders
-
parse
public ScoreHolderArgument.INameProvider parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.INameProvider>
-