mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 03:59:37 +00:00
34 lines
642 B
Java
34 lines
642 B
Java
package mekanism.common;
|
|
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Internal interface containing methods that are shared by many core Mekanism machines. TODO: remove next minor MC
|
|
* version.
|
|
* @author AidanBrady
|
|
*
|
|
*/
|
|
public interface IElectricMachine
|
|
{
|
|
/**
|
|
* 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();
|
|
|
|
/**
|
|
* Gets this machine's recipes.
|
|
*/
|
|
public Map getRecipes();
|
|
}
|