Package net.minecraft.command.argument
Class NbtCompoundArgumentType
java.lang.Object
net.minecraft.command.argument.NbtCompoundArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<NbtCompound>
public class NbtCompoundArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<NbtCompound>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLES -
Constructor Summary
Constructors Modifier Constructor Description privateNbtCompoundArgumentType() -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static <S> NbtCompoundgetNbtCompound(com.mojang.brigadier.context.CommandContext<S> context, String name)static NbtCompoundArgumentTypenbtCompound()NbtCompoundparse(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
-
NbtCompoundArgumentType
private NbtCompoundArgumentType()
-
-
Method Details
-
nbtCompound
-
getNbtCompound
public static <S> NbtCompound getNbtCompound(com.mojang.brigadier.context.CommandContext<S> context, String name) -
parse
public NbtCompound parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<NbtCompound>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<NbtCompound>
-