2013-04-05 22:26:48 +02:00
|
|
|
package mekanism.common;
|
|
|
|
|
2013-07-20 18:10:14 +02:00
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
2013-04-05 22:26:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal interface used in blocks and items that are capable of storing sustained tanks.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2014-03-08 02:00:25 +01:00
|
|
|
public interface ISustainedTank
|
2013-04-05 22:26:48 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Sets the tank tag list to a new value.
|
|
|
|
* @param nbtTags - NBTTagList value to set
|
|
|
|
* @param data - ItemStack parameter if using on item
|
|
|
|
*/
|
2013-07-20 18:10:14 +02:00
|
|
|
public void setFluidStack(FluidStack fluidStack, Object... data);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-04-05 22:26:48 +02:00
|
|
|
/**
|
|
|
|
* Gets the tank tag list from an item or block.
|
|
|
|
* @param data - ItemStack parameter if using on item
|
|
|
|
* @return inventory tag list
|
|
|
|
*/
|
2013-07-20 18:10:14 +02:00
|
|
|
public FluidStack getFluidStack(Object... data);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-04-05 22:26:48 +02:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
}
|