dacc68e6c6
General cleanup, pressurized tubes are 40 times more efficient, a few enhancements, Miners balanced.
25 lines
606 B
Java
25 lines
606 B
Java
package mekanism.api.gas;
|
|
|
|
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 receiveGas(GasStack stack);
|
|
|
|
/**
|
|
* 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, Gas type);
|
|
}
|