mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 04:22:26 +00:00
More work in the quest for greater recipe efficiency.
This commit is contained in:
1 parent
c6a77f9cfa
commit
c7a429177b
87 files changed
+1416
-1106
No files matched your search
@@ -2,13 +2,17 @@ package mekanism.common.base;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import mekanism.common.recipe.inputs.MachineInput;
|
||||
import mekanism.common.recipe.machines.MachineRecipe;
|
||||
import mekanism.common.recipe.outputs.MachineOutput;
|
||||
|
||||
/**
|
||||
* Internal interface containing methods that are shared by many core Mekanism machines. TODO: remove next minor MC
|
||||
* version.
|
||||
* @author AidanBrady
|
||||
*
|
||||
*/
|
||||
public interface IElectricMachine
|
||||
public interface IElectricMachine<INPUT extends MachineInput<INPUT>, OUTPUT extends MachineOutput<OUTPUT>, RECIPE extends MachineRecipe<INPUT, OUTPUT, RECIPE>>
|
||||
{
|
||||
/**
|
||||
* Update call for machines. Use instead of updateEntity() - it's called every tick.
|
||||
@@ -19,15 +23,19 @@ public interface IElectricMachine
|
||||
* Whether or not this machine can operate.
|
||||
* @return can operate
|
||||
*/
|
||||
public boolean canOperate();
|
||||
public boolean canOperate(RECIPE recipe);
|
||||
|
||||
/**
|
||||
* Runs this machine's operation -- or smelts the item.
|
||||
*/
|
||||
public void operate();
|
||||
public void operate(RECIPE recipe);
|
||||
|
||||
/**
|
||||
* Gets this machine's recipes.
|
||||
*/
|
||||
public Map getRecipes();
|
||||
public Map<INPUT, RECIPE> getRecipes();
|
||||
|
||||
public RECIPE getRecipe();
|
||||
|
||||
public INPUT getInput();
|
||||
}
|
||||
Reference in new issue
Block a user