mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
A bit of package reorganization, added InventoryNetwork to transporters
This commit is contained in:
1 parent
e9b87f8d56
commit
1d6de974d3
118 files changed
+452
-280
No files matched your search
@@ -0,0 +1,33 @@
|
||||
package mekanism.common.base;
|
||||
|
||||
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();
|
||||
}
|
||||
Reference in new issue
Block a user