Mekanism-tilera-Edition/common/mekanism/common/IMechanicalPipe.java
Aidan Brady a667f9a3b6 v5.5.6 Beta #24
*Removed Mechanical Pipe & Universal Cable redstone toggle.
*Fixed render crash.
*Fixed version println.
2013-06-29 17:24:54 -04:00

34 lines
818 B
Java

package mekanism.common;
import net.minecraftforge.liquids.LiquidStack;
/**
* Implement this in your TileEntity class if the block can transfer liquid as a Mechanical Pipe.
* @author AidanBrady
*
*/
public interface IMechanicalPipe
{
/**
* Called when liquid is transferred through this pipe.
* @param liquidStack - the liquid transferred
*/
public void onTransfer(LiquidStack liquidStack);
/**
* Gets the LiquidNetwork currently in use by this cable segment.
* @return LiquidNetwork this cable is using
*/
public LiquidNetwork getNetwork();
/**
* Sets this cable segment's LiquidNetwork to a new value.
* @param network - LiquidNetwork to set to
*/
public void setNetwork(LiquidNetwork network);
/**
* Refreshes the cable's LiquidNetwork.
*/
public void refreshNetwork();
}