mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
26 lines
697 B
Java
26 lines
697 B
Java
package mekanism.api.energy;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
/**
|
|
* 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 energy used
|
|
*/
|
|
public double transferEnergyToAcceptor(EnumFacing 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(EnumFacing side);
|
|
}
|