public class NbtUtils
extends java.lang.Object
Constructor and Description |
---|
NbtUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends com.sk89q.worldedit.util.nbt.BinaryTag> |
getChildTag(com.sk89q.worldedit.util.nbt.CompoundBinaryTag tag,
java.lang.String key,
com.sk89q.worldedit.util.nbt.BinaryTagType<T> expected)
Get child tag of a NBT structure.
|
public static <T extends com.sk89q.worldedit.util.nbt.BinaryTag> T getChildTag(com.sk89q.worldedit.util.nbt.CompoundBinaryTag tag, java.lang.String key, com.sk89q.worldedit.util.nbt.BinaryTagType<T> expected) throws InvalidFormatException
tag
- the tag to read fromkey
- the key to look forexpected
- the expected NBT class typeInvalidFormatException
- if the format of the items is invalid