basic-components/src/main/java/universalelectricity/api/electricity/IVoltageOutput.java

21 lines
566 B
Java

package universalelectricity.api.electricity;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Applied to electrical machines that are designed to act as sources of power in an electrical
* network. Mainly used to calculate the over all voltage of a network correctly.
*
* @author DarkGuardsman
*/
public interface IVoltageOutput
{
/**
* Can this machine emit voltage on the given side.
*
* @param side - side that the voltage will be emitted on
* @return the voltage emitted
*/
public double getVoltageOutput(ForgeDirection side);
}