Mekanism-tilera-Edition/common/mekanism/api/energy/IStrictEnergyAcceptor.java

26 lines
716 B
Java
Raw Normal View History

package mekanism.api.energy;
import net.minecraftforge.common.ForgeDirection;
/**
* Implement this if your TileEntity can accept energy at a floating-point double value from Universal Cables.
* @author AidanBrady
*
*/
public interface IStrictEnergyAcceptor extends IStrictEnergyStorage
{
/**
* 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-11-27 19:24:13 +01:00
public double transferEnergyToAcceptor(ForgeDirection side, 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);
}