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

29 lines
861 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 IEnergySource
* @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 IEnergyEmitter extends IEnergyTile {
/**
* Determine if this emitter can emit energy to an adjacent receiver.
*
* 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
*/
boolean emitsEnergyTo(TileEntity receiver, ForgeDirection direction);
2013-04-13 16:35:13 +02:00
}