blob: 6f7d475365dc93f076a84891884f276c54d7a320 [file] [log] [blame] [raw]
package mekanism.common;
import net.minecraft.nbt.NBTTagList;
/**
* Internal interface used in blocks and items that are capable of storing sustained inventories.
* @author AidanBrady
*
*/
public interface ISustainedInventory
{
/**
* Sets the inventory tag list to a new value.
* @param nbtTags - NBTTagList value to set
* @param data - ItemStack parameter if using on item
*/
public void setInventory(NBTTagList nbtTags, Object... data);
/**
* Gets the inventory tag list from an item or block.
* @param data - ItemStack parameter if using on item
* @return inventory tag list
*/
public NBTTagList getInventory(Object... data);
}