buildcraft/api/cofh/api/energy/IEnergyConnection.java

22 lines
558 B
Java
Raw Normal View History

2014-09-03 11:09:51 +02:00
package cofh.api.energy;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Implement this interface on TileEntities which should connect to energy transportation blocks. This is intended for blocks which generate energy but do not
* accept it; otherwise just use IEnergyHandler.
2014-12-14 22:25:56 +01:00
* <p>
2014-09-03 11:09:51 +02:00
* Note that {@link IEnergyHandler} is an extension of this.
*
2014-09-03 11:09:51 +02:00
* @author King Lemming
*
2014-09-03 11:09:51 +02:00
*/
public interface IEnergyConnection {
/**
* Returns TRUE if the TileEntity can connect on a given side.
*/
boolean canConnectEnergy(ForgeDirection from);
}