electrodynamics/APIs/ic2/api/energy/tile/IEnergySource.java

27 lines
633 B
Java
Raw Normal View History

package ic2.api.energy.tile;
/**
* Allows a tile entity (mostly a generator) to emit energy.
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 IEnergySource extends IEnergyEmitter
{
/**
2013-08-26 19:36:24 +02:00
* Energy output provided by the source this tick. This is typically Math.min(stored energy, max
* output/tick).
*
2013-08-26 19:36:24 +02:00
* @return Energy offered this tick
*/
2013-08-26 19:36:24 +02:00
double getOfferedEnergy();
/**
* Draw energy from this source's buffer.
*
* If the source doesn't have a buffer, this is a no-op.
*
* @param amount amount of EU to draw
*/
void drawEnergy(double amount);
}