2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.api.energy;
|
2013-03-25 17:00:45 +01:00
|
|
|
|
|
|
|
import net.minecraftforge.common.ForgeDirection;
|
|
|
|
|
2013-04-01 01:12:10 +02:00
|
|
|
/**
|
|
|
|
* Implement this if your TileEntity can accept energy at a floating-point double value from Universal Cables.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2013-04-19 21:43:00 +02:00
|
|
|
public interface IStrictEnergyAcceptor extends IStrictEnergyStorage
|
2013-03-25 17:00:45 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Transfer a certain amount of energy to this acceptor.
|
|
|
|
* @param amount - amount to transfer
|
2014-01-09 00:28:17 +01:00
|
|
|
* @return energy used
|
2013-03-25 17:00:45 +01:00
|
|
|
*/
|
2013-11-27 19:24:13 +01:00
|
|
|
public double transferEnergyToAcceptor(ForgeDirection side, double amount);
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2013-03-25 17:00:45 +01:00
|
|
|
/**
|
|
|
|
* Whether or not this tile entity accepts energy from a certain side.
|
|
|
|
* @param side - side to check
|
|
|
|
* @return if tile entity accepts energy
|
|
|
|
*/
|
|
|
|
public boolean canReceiveEnergy(ForgeDirection side);
|
|
|
|
}
|