public final class NBTUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Tag> |
getChildTag(Map<String,Tag> items,
String key,
Class<T> expected)
Get child tag of a NBT structure.
|
static Class<? extends Tag> |
getTypeClass(int type)
Gets the class of a type of tag.
|
static int |
getTypeCode(Class<? extends Tag> clazz)
Gets the type code of a tag class.
|
static String |
getTypeName(Class<? extends Tag> clazz)
Gets the type name of a tag.
|
public static String getTypeName(Class<? extends Tag> clazz)
clazz - The tag class.public static int getTypeCode(Class<? extends Tag> clazz)
clazz - The tag class.IllegalArgumentException - if the tag class is invalid.public static Class<? extends Tag> getTypeClass(int type)
type - The type.IllegalArgumentException - if the tag type is invalid.public static <T extends Tag> T getChildTag(Map<String,Tag> items, String key, Class<T> expected) throws InvalidFormatException
items - key - expected - InvalidFormatExceptionCopyright © 2010-2014. All Rights Reserved.