public enum NBTTagType extends Enum<NBTTagType>
| 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 |
|---|---|
byte |
id()
Gets the byte id of this tag type.
|
boolean |
number()
Checks if this tag type is a
number type. |
static NBTTagType |
of(byte id)
Gets the tag type for the specified id.
|
Class<? extends NBTBase> |
shadowClass()
Gets the shadow class of this tag type.
|
static NBTTagType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NBTTagType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NBTTagType END
public static final NBTTagType BYTE
public static final NBTTagType SHORT
public static final NBTTagType INT
public static final NBTTagType LONG
public static final NBTTagType FLOAT
public static final NBTTagType DOUBLE
public static final NBTTagType BYTE_ARRAY
public static final NBTTagType STRING
public static final NBTTagType LIST
public static final NBTTagType COMPOUND
public static final NBTTagType INT_ARRAY
public static final NBTTagType LONG_ARRAY
public static NBTTagType[] values()
for (NBTTagType c : NBTTagType.values()) System.out.println(c);
public static NBTTagType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static NBTTagType of(byte id)
id - the idArrayIndexOutOfBoundsException - if the id is not without boundspublic Class<? extends NBTBase> shadowClass()
public byte id()
public boolean number()
number type.true if a number type, false if notCopyright © 2020. All rights reserved.