public final class NBTUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<? extends Tag> |
getTypeClass(int type)
Gets the class of a type of tag.
|
static int |
getTypeCode(Class<? extends Tag> clazz)
Gets the type code of a tag class.
|
static String |
getTypeName(Class<? extends Tag> clazz)
Gets the type name of a tag.
|
public static String getTypeName(Class<? extends Tag> clazz)
clazz
- the tag classpublic static int getTypeCode(Class<? extends Tag> clazz)
clazz
- the tag classIllegalArgumentException
- if the tag class is invalid.public static Class<? extends Tag> getTypeClass(int type)
type
- the typeIllegalArgumentException
- if the tag type is invalid.Copyright © 2020. All rights reserved.