2013-04-13 16:35:13 +02:00
|
|
|
package ic2.api.energy.tile;
|
|
|
|
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
|
2013-08-22 17:36:31 +02:00
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
2013-04-13 16:35:13 +02:00
|
|
|
|
|
|
|
/**
|
2013-08-22 17:36:31 +02:00
|
|
|
* For internal/multi-block usage only.
|
2013-04-13 16:35:13 +02:00
|
|
|
*
|
|
|
|
* @see IEnergySource
|
|
|
|
* @see IEnergyConductor
|
2013-08-22 17:36:31 +02:00
|
|
|
*
|
|
|
|
* See ic2/api/energy/usage.txt for an overall description of the energy net api.
|
2013-04-13 16:35:13 +02:00
|
|
|
*/
|
|
|
|
public interface IEnergyEmitter extends IEnergyTile {
|
|
|
|
/**
|
|
|
|
* Determine if this emitter can emit energy to an adjacent receiver.
|
|
|
|
*
|
2013-08-22 17:36:31 +02:00
|
|
|
* The TileEntity in the receiver parameter is what was originally added to the energy net,
|
|
|
|
* which may be normal in-world TileEntity, a delegate or an IMetaDelegate.
|
|
|
|
*
|
|
|
|
* @param receiver receiver, may be an IMetaDelegate
|
2013-04-13 16:35:13 +02:00
|
|
|
* @param direction direction the receiver is from the emitter
|
|
|
|
* @return Whether energy should be emitted
|
|
|
|
*/
|
2013-08-22 17:36:31 +02:00
|
|
|
boolean emitsEnergyTo(TileEntity receiver, ForgeDirection direction);
|
2013-04-13 16:35:13 +02:00
|
|
|
}
|
|
|
|
|