Mekanism-tilera-Edition/common/mekanism/common/ISustainedInventory.java
2013-06-28 19:43:45 -04:00

25 lines
660 B
Java

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);
}