mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Even more modularization
This commit is contained in:
1 parent
b2f20185e4
commit
f64ea42e43
14 files changed
+176
-340
No files matched your search
@@ -2,7 +2,7 @@ package mekanism.api;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public interface IPressurizedTube
|
||||
public interface IPressurizedTube extends ITransmitter<GasNetwork>
|
||||
{
|
||||
/**
|
||||
* Whether or not this tube can transfer gas.
|
||||
@@ -22,41 +22,4 @@ public interface IPressurizedTube
|
||||
* @param type - the type of gas transferred
|
||||
*/
|
||||
public void onTransfer(EnumGas type);
|
||||
|
||||
/**
|
||||
* Gets the GasNetwork currently in use by this tube segment.
|
||||
* @return GasNetwork this cable is using
|
||||
*/
|
||||
public GasNetwork getNetwork();
|
||||
|
||||
/**
|
||||
* Gets the GasNetwork currently in use by this tube segment.
|
||||
* @param createIfNull - If true, the tube will try and connect to an
|
||||
* adjacent network, merging several if necessary, or creating a new one
|
||||
* if none is available
|
||||
* @return GasNetwork this cable is using
|
||||
*/
|
||||
public GasNetwork getNetwork(boolean createIfNull);
|
||||
|
||||
/**
|
||||
* Sets this cable segment's GasNetwork to a new value.
|
||||
* @param network - GasNetwork to set to
|
||||
*/
|
||||
public void setNetwork(GasNetwork network);
|
||||
|
||||
/**
|
||||
* Refreshes the tube's GasNetwork.
|
||||
*/
|
||||
public void refreshNetwork();
|
||||
|
||||
/**
|
||||
* Remove a tube from its network.
|
||||
*/
|
||||
public void removeFromNetwork();
|
||||
|
||||
/**
|
||||
* Call this if you're worried a tube's network is messed up and you want
|
||||
* it to try and fix itself.
|
||||
*/
|
||||
public void fixNetwork();
|
||||
}
|
||||
Reference in new issue
Block a user