| Enum Constant and Description |
|---|
BYTE |
BYTE_ARRAY |
COMPOUND |
DOUBLE |
END |
FLOAT |
INT |
INT_ARRAY |
LIST |
LONG |
LONG_ARRAY |
SHORT |
STRING |
| Modifier and Type | Method and Description |
|---|---|
static NbtType |
byClass(java.lang.Class<? extends INbtTag> tagClass) |
static NbtType |
byDataType(java.lang.Class<?> dataType) |
static NbtType |
byId(int id) |
static NbtType |
byName(java.lang.String name) |
java.lang.Class<?> |
getDataType() |
int |
getId() |
java.lang.Class<? extends INbtTag> |
getTagClass() |
boolean |
isNumber() |
INbtTag |
newInstance() |
static NbtType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NbtType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NbtType END
public static final NbtType BYTE
public static final NbtType SHORT
public static final NbtType INT
public static final NbtType LONG
public static final NbtType FLOAT
public static final NbtType DOUBLE
public static final NbtType BYTE_ARRAY
public static final NbtType STRING
public static final NbtType LIST
public static final NbtType COMPOUND
public static final NbtType INT_ARRAY
public static final NbtType LONG_ARRAY
public static NbtType[] values()
for (NbtType c : NbtType.values()) System.out.println(c);
public static NbtType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static NbtType byName(java.lang.String name)
public static NbtType byId(int id)
public static NbtType byDataType(java.lang.Class<?> dataType)
public int getId()
public java.lang.Class<? extends INbtTag> getTagClass()
public INbtTag newInstance()
public java.lang.Class<?> getDataType()
public boolean isNumber()