26 lines
701 B
Java
26 lines
701 B
Java
package mekanism.common;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
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);
|
|
}
|