dacc68e6c6
General cleanup, pressurized tubes are 40 times more efficient, a few enhancements, Miners balanced.
34 lines
875 B
Java
34 lines
875 B
Java
package mekanism.api.gas;
|
|
|
|
/**
|
|
* Implement this if your tile entity can store some form of gas. If you want your item to store gas, implement IStorageTank
|
|
* instead.
|
|
* @author AidanBrady
|
|
*
|
|
*/
|
|
public interface IGasStorage
|
|
{
|
|
/**
|
|
* Get the gas of a declared type.
|
|
* @param type - type of gas
|
|
* @param data - ItemStack parameter if necessary
|
|
* @return gas stored
|
|
*/
|
|
public GasStack getGas(Object... data);
|
|
|
|
/**
|
|
* Set the gas of a declared type to a new amount;
|
|
* @param type - type of gas
|
|
* @param data - ItemStack parameter if necessary
|
|
* @param amount - amount to store
|
|
*/
|
|
public void setGas(GasStack stack, Object... data);
|
|
|
|
/**
|
|
* Gets the maximum amount of gas this tile entity can store.
|
|
* @param type - type of gas
|
|
* @param data - ItemStack parameter if necessary
|
|
* @return maximum gas
|
|
*/
|
|
public int getMaxGas(Object... data);
|
|
}
|