Mekanism-tilera-Edition/src/minecraft/mekanism/api/IElectricMachine.java

33 lines
594 B
Java
Raw Normal View History

package mekanism.api;
import java.util.Map;
/**
* A group of common methods used by all Mekanism machines.
* @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();
}