Class StatArgumentType
java.lang.Object
io.github.thecsdev.tcdcommons.api.command.argument.StatArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
@Internal
@Experimental
public final class StatArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.util.Identifier
The uniqueIdentifier
used to register thisArgumentType
to theRegistries.COMMAND_ARGUMENT_TYPE
Registry
. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatArgumentType
fromArgument
(String argName) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) final net.minecraft.util.Identifier
parse
(com.mojang.brigadier.StringReader reader) static StatArgumentType
stat()
static StatArgumentType
stat
(net.minecraft.stat.StatType<?> statType) 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
getExamples
-
Field Details
-
ID
public static final net.minecraft.util.Identifier IDThe uniqueIdentifier
used to register thisArgumentType
to theRegistries.COMMAND_ARGUMENT_TYPE
Registry
.
-
-
Method Details
-
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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
-
parse
public final net.minecraft.util.Identifier parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<net.minecraft.util.Identifier>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
stat
-
stat
-
fromArgument
-