mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
43 lines
1.0 KiB
Java
43 lines
1.0 KiB
Java
package mekanism.api;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
public interface IPressurizedTube
|
|
{
|
|
/**
|
|
* 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();
|
|
}
|