mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-13 16:54:16 +00:00
26 lines
677 B
Java
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);
|
|
}
|