2014-08-10 04:20:49 +02:00
|
|
|
package mekanism.common.base;
|
2013-03-31 00:13:59 +01:00
|
|
|
|
|
|
|
import net.minecraft.nbt.NBTTagList;
|
|
|
|
|
2013-04-01 01:12:10 +02:00
|
|
|
/**
|
|
|
|
* Internal interface used in blocks and items that are capable of storing sustained inventories.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2014-03-08 02:00:25 +01:00
|
|
|
public interface ISustainedInventory
|
2013-03-31 00:13:59 +01:00
|
|
|
{
|
2013-03-31 05:10:16 +02:00
|
|
|
/**
|
|
|
|
* Sets the inventory tag list to a new value.
|
|
|
|
* @param nbtTags - NBTTagList value to set
|
|
|
|
* @param data - ItemStack parameter if using on item
|
|
|
|
*/
|
2013-03-31 00:13:59 +01:00
|
|
|
public void setInventory(NBTTagList nbtTags, Object... data);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-03-31 05:10:16 +02:00
|
|
|
/**
|
|
|
|
* Gets the inventory tag list from an item or block.
|
|
|
|
* @param data - ItemStack parameter if using on item
|
|
|
|
* @return inventory tag list
|
|
|
|
*/
|
2013-03-31 00:13:59 +01:00
|
|
|
public NBTTagList getInventory(Object... data);
|
|
|
|
}
|