Mekanism-tilera-Edition/common/mekanism/api/transmitters/IGridTransmitter.java

64 lines
1.7 KiB
Java
Raw Normal View History

2013-12-21 01:12:33 +01:00
package mekanism.api.transmitters;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
public interface IGridTransmitter<N extends DynamicNetwork<?, N>> extends ITransmitter
{
2013-12-21 01:12:33 +01:00
/**
* Gets the network currently in use by this transmitter segment.
* @return network this transmitter is using
*/
public N getTransmitterNetwork();
2013-12-21 01:12:33 +01:00
/**
* Gets the network currently in use by this transmitter segment.
* @param createIfNull - If true, the transmitter will try and connect to an
* adjacent network, merging several if necessary, or creating a new one
* if none is available
* @return network this transmitter is using
*/
public N getTransmitterNetwork(boolean createIfNull);
2013-12-21 01:12:33 +01:00
/**
* Sets this transmitter segment's network to a new value.
* @param network - network to set to
*/
public void setTransmitterNetwork(N network);
2013-12-21 01:12:33 +01:00
/**
* Refreshes the transmitter's network.
*/
public void refreshTransmitterNetwork();
2013-12-21 01:12:33 +01:00
/**
* Called when the chunk this transmitter is in is loaded.
*/
public void chunkLoad();
2013-12-21 01:12:33 +01:00
/**
* Remove this transmitter from its network.
*/
public void removeFromTransmitterNetwork();
2014-01-03 18:13:49 +01:00
public boolean canConnectToAcceptor(ForgeDirection side, boolean ignoreActive);
2013-12-21 01:12:33 +01:00
/**
* Call this if you're worried a transmitter's network is messed up and you want
* it to try and fix itself.
*/
public void fixTransmitterNetwork();
public boolean areTransmitterNetworksEqual(TileEntity tileEntity);
public int getTransmitterNetworkSize();
public int getTransmitterNetworkAcceptorSize();
2013-12-21 01:12:33 +01:00
public String getTransmitterNetworkNeeded();
2013-12-21 01:12:33 +01:00
public String getTransmitterNetworkFlow();
2013-12-21 01:12:33 +01:00
public int getCapacity();
2013-12-21 01:12:33 +01:00
}