resonant-induction/APIs/ic2/api/energy/tile/IEnergyAcceptor.java

27 lines
817 B
Java
Raw Normal View History

package ic2.api.energy.tile;
import net.minecraft.tileentity.TileEntity;
2013-08-26 19:36:24 +02:00
import net.minecraftforge.common.ForgeDirection;
/**
2013-08-26 19:36:24 +02:00
* For internal/multi-block usage only.
*
* @see IEnergySink
* @see IEnergyConductor
2013-08-26 19:36:24 +02:00
*
* See ic2/api/energy/usage.txt for an overall description of the energy net api.
*/
public interface IEnergyAcceptor extends IEnergyTile
{
/**
* Determine if this acceptor can accept current from an adjacent emitter in a direction.
*
2013-08-26 19:36:24 +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.
*
* @param emitter energy emitter
* @param direction direction the energy is being received from
*/
2013-08-26 19:36:24 +02:00
boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction);
}