2012-11-15 21:04:12 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
|
|
|
|
|
|
/**
|
2012-11-23 03:22:11 +01:00
|
|
|
* Implement this if your tile entity accepts gas from a foreign, external source.
|
2012-11-15 21:04:12 +01:00
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface IGasAcceptor
|
|
|
|
{
|
|
|
|
/**
|
2012-11-23 03:22:11 +01:00
|
|
|
* Transfer a certain amount of gas to this acceptor.
|
2012-11-15 21:04:12 +01:00
|
|
|
* @param amount - amount to transfer
|
|
|
|
* @return rejects
|
|
|
|
*/
|
|
|
|
public int transferGasToAcceptor(int amount, EnumGas type);
|
|
|
|
|
|
|
|
/**
|
2012-11-23 03:22:11 +01:00
|
|
|
* Whether or not this tile entity accepts gas from a certain side.
|
2012-11-15 21:04:12 +01:00
|
|
|
* @param side - side to check
|
2012-11-23 03:22:11 +01:00
|
|
|
* @return if tile entity accepts gas
|
2012-11-15 21:04:12 +01:00
|
|
|
*/
|
|
|
|
public boolean canReceiveGas(ForgeDirection side, EnumGas type);
|
|
|
|
}
|