2012-11-15 21:04:12 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
|
|
|
/**
|
2013-04-01 01:12:10 +02:00
|
|
|
* Implement this if your tile entity can store some form of gas. If you want your item to store gas, implement IStorageTank
|
|
|
|
* instead.
|
2012-11-15 21:04:12 +01:00
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface IGasStorage
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the gas of a declared type.
|
|
|
|
* @param type - type of gas
|
2013-04-01 01:12:10 +02:00
|
|
|
* @param data - ItemStack parameter if necessary
|
2012-11-15 21:04:12 +01:00
|
|
|
* @return gas stored
|
|
|
|
*/
|
2013-04-01 01:12:10 +02:00
|
|
|
public int getGas(EnumGas type, Object... data);
|
2012-11-15 21:04:12 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the gas of a declared type to a new amount;
|
|
|
|
* @param type - type of gas
|
2013-04-01 01:12:10 +02:00
|
|
|
* @param data - ItemStack parameter if necessary
|
2012-11-15 21:04:12 +01:00
|
|
|
* @param amount - amount to store
|
|
|
|
*/
|
2013-04-01 01:12:10 +02:00
|
|
|
public void setGas(EnumGas type, int amount, Object... data);
|
2013-03-28 20:36:05 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the maximum amount of gas this tile entity can store.
|
|
|
|
* @param type - type of gas
|
2013-04-01 01:12:10 +02:00
|
|
|
* @param data - ItemStack parameter if necessary
|
2013-03-28 20:36:05 +01:00
|
|
|
* @return maximum gas
|
|
|
|
*/
|
2013-04-01 01:12:10 +02:00
|
|
|
public int getMaxGas(EnumGas type, Object... data);
|
2012-11-15 21:04:12 +01:00
|
|
|
}
|