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 class
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Collection
<String> (package private) final boolean
static final com.mojang.brigadier.suggestion.SuggestionProvider
<CommandSourceStack> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScoreHolder
getName
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108224_, String p_108225_) static Collection
<ScoreHolder> getNames
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108244_, String p_108245_) static Collection
<ScoreHolder> getNames
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108227_, String p_108228_, Supplier<Collection<ScoreHolder>> p_108229_) static Collection
<ScoreHolder> 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 -
multiple
final boolean multiple
-
-
Constructor Details
-
ScoreHolderArgument
public ScoreHolderArgument(boolean p_108216_)
-
-
Method Details
-
getName
public static ScoreHolder 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<ScoreHolder> 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<ScoreHolder> 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<ScoreHolder> getNames(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_108227_, String p_108228_, Supplier<Collection<ScoreHolder>> 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>
-