2013-04-01 01:12:10 +02:00
|
|
|
package mekanism.common;
|
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
|
|
|
|
|
|
|
/**
|
2013-04-01 01:12:10 +02:00
|
|
|
* Internal interface containing methods that are shared by many core Mekanism machines. TODO: remove next minor MC
|
|
|
|
* version.
|
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
|
|
|
{
|
2014-03-08 02:00:25 +01:00
|
|
|
/**
|
|
|
|
* Update call for machines. Use instead of updateEntity() - it's called every tick.
|
|
|
|
*/
|
2012-10-02 20:39:40 +02:00
|
|
|
public void onUpdate();
|
2014-03-08 02:00:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether or not this machine can operate.
|
|
|
|
* @return can operate
|
|
|
|
*/
|
2012-10-02 20:39:40 +02:00
|
|
|
public boolean canOperate();
|
2014-03-08 02:00:25 +01:00
|
|
|
|
2012-10-02 20:39:40 +02:00
|
|
|
/**
|
|
|
|
* Runs this machine's operation -- or smelts the item.
|
|
|
|
*/
|
|
|
|
public void operate();
|
2014-03-08 02:00:25 +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
|
|
|
}
|