Package net.minecraft.command.argument
Class NbtTagArgumentType
java.lang.Object
net.minecraft.command.argument.NbtTagArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Tag>
public class NbtTagArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Tag>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLES -
Constructor Summary
Constructors Modifier Constructor Description privateNbtTagArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static <S> TaggetTag(com.mojang.brigadier.context.CommandContext<S> context, String name)static NbtTagArgumentTypenbtTag()Tagparse(com.mojang.brigadier.StringReader stringReader)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
NbtTagArgumentType
private NbtTagArgumentType()
-
-
Method Details
-
nbtTag
-
getTag
-
parse
public Tag parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<Tag>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<Tag>
-