Mekanism-tilera-Edition/common/mekanism/api/IGasAcceptor.java
2013-06-28 18:01:00 -04:00

25 lines
627 B
Java

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