Mekanism-tilera-Edition/src/minecraft/mekanism/api/IGasStorage.java
Aidan Brady dcb5fac394 v5.5.4 Beta #1
*Refactored API, removing core interfaces and adding more descriptive
javadocs.  MDK users, be prepared to update.
*Fixed differing progress not being recognized.
*Fixed Theoretical Elementizer displaying incorrect progress.
*Made IGasStorage work in both items and blocks -- IStorageTank extends
this now.
*Better storage tank code.
*Loads of reformatting and added missing javadocs.
2013-03-31 19:12:10 -04:00

34 lines
904 B
Java

package mekanism.api;
/**
* 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 int getGas(EnumGas type, 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(EnumGas type, int amount, 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(EnumGas type, Object... data);
}