2013-03-25 17:00:45 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
|
|
|
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
|
|
|
|
* @return rejects
|
|
|
|
*/
|
|
|
|
public double transferEnergyToAcceptor(double amount);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
}
|