public final class NBTUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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.