Mekanism-tilera-Edition/common/mekanism/api/IPressurizedTube.java

43 lines
1 KiB
Java
Raw Normal View History

package mekanism.api;
import net.minecraft.tileentity.TileEntity;
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
*/
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);
/**
* 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();
}