Files
Mekanism-Community-Edition/common/mekanism/api/IPressurizedTube.java
T
2013-08-18 16:51:47 -04:00

26 lines
677 B
Java

package mekanism.api;
import net.minecraft.tileentity.TileEntity;
public interface IPressurizedTube extends ITransmitter<GasNetwork>
{
/**
* Whether or not this tube can transfer gas.
* @return if the tube can transfer gas
*/
public boolean canTransferGas();
/**
* Whether or not this tube can transfer gas into an adjacent tube.
* @param tile - the adjacent tube
* @return if this tube can transfer gas into the passed tube
*/
public boolean canTransferGasToTube(TileEntity tile);
/**
* Called when a gas is transferred through this tube.
* @param type - the type of gas transferred
*/
public void onTransfer(EnumGas type);
}