Mekanism-tilera-Edition/src/minecraft/mekanism/api/IStrictEnergyAcceptor.java
Aidan Brady 670990ea57 v5.5.4 Pre-Release #4
*Updated IC2 API.
*Fixed a few bugs in LinkedPowerProvider.
*Fixed Electric Chest NBT data save.
*Registered all items with GameRegistry.
*IStrictEnergyAcceptor for @liquidgithub.
2013-04-19 15:43:00 -04:00

25 lines
685 B
Java

package mekanism.api;
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
* @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);
}