Mekanism-tilera-Edition/common/mekanism/common/ISustainedTank.java
2013-06-28 18:01:00 -04:00

34 lines
964 B
Java

package mekanism.common;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.liquids.LiquidStack;
import net.minecraftforge.liquids.LiquidTank;
/**
* Internal interface used in blocks and items that are capable of storing sustained tanks.
* @author AidanBrady
*
*/
public interface ISustainedTank
{
/**
* Sets the tank tag list to a new value.
* @param nbtTags - NBTTagList value to set
* @param data - ItemStack parameter if using on item
*/
public void setLiquidStack(LiquidStack liquidStack, Object... data);
/**
* Gets the tank tag list from an item or block.
* @param data - ItemStack parameter if using on item
* @return inventory tag list
*/
public LiquidStack getLiquidStack(Object... data);
/**
* Whether or not this block or item has an internal tank.
* @param data - ItemStack parameter if using on item
* @return if the block or item has an internal tank
*/
public boolean hasTank(Object... data);
}