2013-02-22 04:03:54 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
2013-04-13 02:30:00 +02:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
|
2013-02-22 04:03:54 +01:00
|
|
|
public interface IPressurizedTube
|
|
|
|
{
|
2013-02-25 21:02:05 +01:00
|
|
|
/**
|
|
|
|
* Whether or not this tube can transfer gas.
|
|
|
|
* @return if the tube can transfer gas
|
|
|
|
*/
|
2013-06-26 23:49:47 +02:00
|
|
|
public boolean canTransferGas();
|
2013-04-23 02:14:00 +02:00
|
|
|
|
2013-06-27 21:05:56 +02:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2013-04-23 02:14:00 +02:00
|
|
|
/**
|
|
|
|
* Called when a gas is transferred through this tube.
|
|
|
|
* @param type - the type of gas transferred
|
|
|
|
*/
|
|
|
|
public void onTransfer(EnumGas type);
|
2013-06-26 23:49:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the GasNetwork currently in use by this cable segment.
|
|
|
|
* @return GasNetwork this cable is using
|
|
|
|
*/
|
|
|
|
public GasNetwork getNetwork();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets this cable segment's GasNetwork to a new value.
|
|
|
|
* @param network - GasNetwork to set to
|
|
|
|
*/
|
|
|
|
public void setNetwork(GasNetwork network);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Refreshes the cable's GasNetwork.
|
|
|
|
*/
|
|
|
|
public void refreshNetwork();
|
2013-02-22 04:03:54 +01:00
|
|
|
}
|