blob: 1f44d716f8da92b948d15a173ade480acc09eb83 [file] [log] [blame] [raw]
package net.darkhax.tesla.api;
public interface ITeslaConsumer {
/**
* Offers power to the Tesla Consumer.
*
* @param power The amount of power to offer.
* @param simulated Whether or not this is being called as part of a simulation.
* Simulations are used to get information without affecting the Tesla Producer.
* @return The amount of power that the consumer accepts.
*/
long givePower (long power, boolean simulated);
}