Interface NBTUtil


public interface NBTUtil
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    getItemNBTValue(Object item, String nbtKey)
    Gets the item nbt string value associated with nbt key.
    @Nullable String
    getItemNBTValue(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

      @Nullable String getItemNBTValue(Object item, String nbtKey)
      Gets the item nbt string value associated with nbt key.
      Parameters:
      item - The item to check
      nbtKey - The nbt key
      Returns:
      The nbt string value, if available
    • getItemNBTValue

      @Nullable String getItemNBTValue(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.
      Parameters:
      item - The item to check
      compoundKey - The nbt compound key to search
      nbtKey - The nbt key
      Returns:
      The nbt string value, if available