buildcraft/api/buildcraft/api/power/IEngine.java
2014-12-09 21:09:14 +01:00

22 lines
760 B
Java

/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* The BuildCraft API is distributed under the terms of the MIT License.
* Please check the contents of the license, which should be located
* as "LICENSE.API" in the BuildCraft source code distribution.
*/
package buildcraft.api.power;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Engines should implement this interface if they want to support
* BuildCraft's behaviour of passing energy between engines
* without using receiveEnergy() (which has other issues).
*/
public interface IEngine {
boolean canReceiveFromEngine(ForgeDirection side);
int receiveEnergyFromEngine(ForgeDirection side, int energy, boolean simulate);
}