public enum TagType extends Enum<TagType>
Enum Constant and Description |
---|
BYTE |
BYTE_ARRAY |
COMPOUND |
DOUBLE |
END |
FLOAT |
INT |
INT_ARRAY |
LIST |
LONG |
SHORT |
STRING |
Modifier and Type | Method and Description |
---|---|
static TagType |
byId(int id)
Returns the tag type with a given ID.
|
byte |
getId() |
String |
getName() |
static TagType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TagType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagType END
public static final TagType BYTE
public static final TagType SHORT
public static final TagType INT
public static final TagType LONG
public static final TagType FLOAT
public static final TagType DOUBLE
public static final TagType BYTE_ARRAY
public static final TagType STRING
public static final TagType LIST
public static final TagType COMPOUND
public static final TagType INT_ARRAY
public static TagType[] values()
for (TagType c : TagType.values()) System.out.println(c);
public static TagType 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 TagType byId(int id)
id
- the ID to look upid
, or null if none existspublic byte getId()
public String getName()
Copyright © 2021. All rights reserved.