ActuallyAdditions/src/main/java/cofh/api/energy/IEnergyConnection.java

23 lines
539 B
Java
Raw Normal View History

2015-07-15 00:19:44 +02:00
package cofh.api.energy;
2016-01-07 18:20:59 +01:00
import net.minecraft.util.EnumFacing;
2015-07-15 00:19:44 +02:00
2016-02-16 21:49:44 +01:00
2015-07-15 00:19:44 +02:00
/**
* 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.
* <p>
* Note that {@link IEnergyHandler} is an extension of this.
2015-10-03 22:13:57 +02:00
*
2015-07-15 00:19:44 +02:00
* @author King Lemming
2015-10-03 22:13:57 +02:00
*
2015-07-15 00:19:44 +02:00
*/
public interface IEnergyConnection {
/**
* Returns TRUE if the TileEntity can connect on a given side.
*/
2016-01-07 18:20:59 +01:00
boolean canConnectEnergy(EnumFacing from);
2015-07-15 00:19:44 +02:00
}