Mekanism-tilera-Edition/src/main/java/mekanism/common/ISustainedInventory.java
2014-04-20 03:44:06 +01:00

25 lines
658 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);
}