Package com.sk89q.jnbt
Class NBTConstants
java.lang.Object
com.sk89q.jnbt.NBTConstants
A class which holds constant values.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Charset
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptiongetClassFromType
(int id) Convert a type ID to its correspondingTag
class.
-
Field Details
-
CHARSET
-
TYPE_END
public static final int TYPE_END- See Also:
-
TYPE_BYTE
public static final int TYPE_BYTE- See Also:
-
TYPE_SHORT
public static final int TYPE_SHORT- See Also:
-
TYPE_INT
public static final int TYPE_INT- See Also:
-
TYPE_LONG
public static final int TYPE_LONG- See Also:
-
TYPE_FLOAT
public static final int TYPE_FLOAT- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE- See Also:
-
TYPE_BYTE_ARRAY
public static final int TYPE_BYTE_ARRAY- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_LIST
public static final int TYPE_LIST- See Also:
-
TYPE_COMPOUND
public static final int TYPE_COMPOUND- See Also:
-
TYPE_INT_ARRAY
public static final int TYPE_INT_ARRAY- See Also:
-
TYPE_LONG_ARRAY
public static final int TYPE_LONG_ARRAY- See Also:
-
-
Method Details
-
getClassFromType
Convert a type ID to its correspondingTag
class.- Parameters:
id
- type ID- Returns:
- tag class
- Throws:
IllegalArgumentException
- thrown if the tag ID is not valid
-