Package com.griefdefender.api.util
Interface NBTUtil
public interface NBTUtil
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetItemNBTValue(Object item, String nbtKey) Gets the item nbt string value associated with nbt key.@Nullable StringgetItemNBTValue(Object item, String compoundKey, String nbtKey) Searches for nbt compound by compound key and if found, gets the item nbt string value associated with nbt key.
-
Method Details
-
getItemNBTValue
Gets the item nbt string value associated with nbt key.- Parameters:
item- The item to checknbtKey- The nbt key- Returns:
- The nbt string value, if available
-
getItemNBTValue
Searches for nbt compound by compound key and if found, gets the item nbt string value associated with nbt key.- Parameters:
item- The item to checkcompoundKey- The nbt compound key to searchnbtKey- The nbt key- Returns:
- The nbt string value, if available
-