Mekanism-tilera-Edition/src/main/java/mekanism/common/base/ISustainedInventory.java

26 lines
663 B
Java
Raw Normal View History

package mekanism.common.base;
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);
}