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 IEnergySink
|
|
|
|
* @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 IEnergyAcceptor extends IEnergyTile {
|
|
|
|
/**
|
|
|
|
* Determine if this acceptor can accept current from an adjacent emitter in a direction.
|
|
|
|
*
|
2013-08-22 17:36:31 +02:00
|
|
|
* The TileEntity in the emitter parameter is what was originally added to the energy net,
|
|
|
|
* which may be normal in-world TileEntity, a delegate or an IMetaDelegate.
|
|
|
|
*
|
2013-04-13 16:35:13 +02:00
|
|
|
* @param emitter energy emitter
|
|
|
|
* @param direction direction the energy is being received from
|
|
|
|
*/
|
2013-08-22 17:36:31 +02:00
|
|
|
boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction);
|
2013-04-13 16:35:13 +02:00
|
|
|
}
|
|
|
|
|