public final class NBTConstants extends Object
Modifier and Type | Field and Description |
---|---|
static Charset |
CHARSET |
static int |
TYPE_BYTE |
static int |
TYPE_BYTE_ARRAY |
static int |
TYPE_COMPOUND |
static int |
TYPE_DOUBLE |
static int |
TYPE_END |
static int |
TYPE_FLOAT |
static int |
TYPE_INT |
static int |
TYPE_INT_ARRAY |
static int |
TYPE_LIST |
static int |
TYPE_LONG |
static int |
TYPE_SHORT |
static int |
TYPE_STRING |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Tag> |
getClassFromType(int id)
Convert a type ID to its corresponding
Tag class. |
public static final Charset CHARSET
public static final int TYPE_END
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
public static final int TYPE_BYTE_ARRAY
public static final int TYPE_STRING
public static final int TYPE_LIST
public static final int TYPE_COMPOUND
public static final int TYPE_INT_ARRAY
public static Class<? extends Tag> getClassFromType(int id)
Tag
class.id
- type IDIllegalArgumentException
- thrown if the tag ID is not validCopyright © 2020. All rights reserved.