Mekanism-tilera-Edition/common/ic2/api/energy/tile/IEnergyAcceptor.java

28 lines
818 B
Java
Raw Normal View History

2013-04-13 16:35:13 +02:00
package ic2.api.energy.tile;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
2013-04-13 16:35:13 +02:00
/**
* For internal/multi-block usage only.
2013-04-13 16:35:13 +02:00
*
* @see IEnergySink
* @see IEnergyConductor
*
* 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.
*
* 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
*/
boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction);
2013-04-13 16:35:13 +02:00
}