Package net.minecraft.commands.arguments
Class ScoreHolderArgument
java.lang.Object
net.minecraft.commands.arguments.ScoreHolderArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.Result>
public class ScoreHolderArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.Result>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static Collection<String>
private static byte
(package private) boolean
static com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108224_, String p_108225_)
static Collection<String>
getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108244_, String p_108245_)
static Collection<String>
getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108227_, String p_108228_, Supplier<Collection<String>> p_108229_)
static Collection<String>
getNamesWithDefaultWildcard(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108247_, String p_108248_)
parse(com.mojang.brigadier.StringReader p_108219_)
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<CommandSourceStack> SUGGEST_SCORE_HOLDERS -
EXAMPLES
-
ERROR_NO_RESULTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NO_RESULTS -
FLAG_MULTIPLE
private static final byte FLAG_MULTIPLE- See Also:
- Constant Field Values
-
multiple
final boolean multiple
-
-
Constructor Details
-
ScoreHolderArgument
public ScoreHolderArgument(boolean p_108216_)
-
-
Method Details
-
getName
public static String getName(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108224_, String p_108225_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNames
public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108244_, String p_108245_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNamesWithDefaultWildcard
public static Collection<String> getNamesWithDefaultWildcard(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108247_, String p_108248_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNames
public static Collection<String> getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108227_, String p_108228_, Supplier<Collection<String>> p_108229_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
scoreHolder
-
scoreHolders
-
parse
public ScoreHolderArgument.Result parse(com.mojang.brigadier.StringReader p_108219_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.Result>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ScoreHolderArgument.Result>
-