Class NBTUtils
java.lang.Object
com.github.imdabigboss.easydatapack.api.utils.nbt.NBTUtils
A class which contains NBT-related utility methods.
- Author:
- Graham Edgecombe
-
Method Summary
Modifier and TypeMethodDescriptiongetTypeClass(int type)Gets the class of a type of tag.static intgetTypeCode(Class<? extends Tag> clazz)Gets the type code of a tag class.static StringgetTypeName(Class<? extends Tag> clazz)Gets the type name of a tag.
-
Method Details
-
getTypeName
Gets the type name of a tag.- Parameters:
clazz- The tag class.- Returns:
- The type name.
-
getTypeCode
Gets the type code of a tag class.- Parameters:
clazz- The tag class.- Returns:
- The type code.
- Throws:
IllegalArgumentException- if the tag class is invalid.
-
getTypeClass
Gets the class of a type of tag.- Parameters:
type- The type.- Returns:
- The class.
- Throws:
IllegalArgumentException- if the tag type is invalid.
-