2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.api.energy;
|
2013-04-19 21:43:00 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Mekanism-specific energy storage for TileEntities, already implemented in IStrictEnergyAcceptor.
|
|
|
|
* @author aidancbrady
|
|
|
|
*
|
|
|
|
*/
|
2014-03-08 02:00:25 +01:00
|
|
|
public interface IStrictEnergyStorage
|
2013-04-19 21:43:00 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Gets the amount of energy this TileEntity is currently storing.
|
|
|
|
* @return stored energy
|
|
|
|
*/
|
|
|
|
public double getEnergy();
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-04-19 21:43:00 +02:00
|
|
|
/**
|
|
|
|
* Sets the amount of stored energy of this TileEntity to a new amount.
|
|
|
|
* @param energy - new energy value
|
|
|
|
*/
|
|
|
|
public void setEnergy(double energy);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-04-19 21:43:00 +02:00
|
|
|
/**
|
|
|
|
* Gets the maximum amount of energy this TileEntity can store.
|
|
|
|
* @return maximum energy
|
|
|
|
*/
|
|
|
|
public double getMaxEnergy();
|
|
|
|
}
|