public final class NBTUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends Tag> |
getTypeClass(int type)
Gets the class of a type of tag.
|
static int |
getTypeCode(java.lang.Class<? extends Tag> clazz)
Gets the type code of a tag class.
|
static java.lang.String |
getTypeName(java.lang.Class<? extends Tag> clazz)
Gets the type name of a tag.
|
public static java.lang.String getTypeName(java.lang.Class<? extends Tag> clazz)
clazz
- The tag class.public static int getTypeCode(java.lang.Class<? extends Tag> clazz)
clazz
- The tag class.java.lang.IllegalArgumentException
- if the tag class is invalid.public static java.lang.Class<? extends Tag> getTypeClass(int type)
type
- The type.java.lang.IllegalArgumentException
- if the tag type is invalid.