2012-11-05 20:29:04 +01:00
|
|
|
package mekanism.api;
|
2012-10-02 20:39:40 +02:00
|
|
|
|
2012-12-20 22:53:39 +01:00
|
|
|
import java.util.Map;
|
2012-10-02 20:39:40 +02:00
|
|
|
|
|
|
|
/**
|
2012-11-05 20:29:04 +01:00
|
|
|
* A group of common methods used by all Mekanism machines.
|
2012-10-02 20:39:40 +02:00
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2012-11-09 03:22:18 +01:00
|
|
|
public interface IElectricMachine
|
2012-10-02 20:39:40 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Update call for machines. Use instead of updateEntity() - it's called every tick.
|
|
|
|
*/
|
|
|
|
public void onUpdate();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not this machine can operate.
|
|
|
|
* @return can operate
|
|
|
|
*/
|
|
|
|
public boolean canOperate();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Runs this machine's operation -- or smelts the item.
|
|
|
|
*/
|
|
|
|
public void operate();
|
2013-01-23 21:42:45 +01:00
|
|
|
|
2012-10-02 20:39:40 +02:00
|
|
|
/**
|
2013-01-23 21:42:45 +01:00
|
|
|
* Gets this machine's recipes.
|
2012-10-02 20:39:40 +02:00
|
|
|
*/
|
2013-02-22 04:03:54 +01:00
|
|
|
public Map getRecipes();
|
2012-10-02 20:39:40 +02:00
|
|
|
}
|