Update Combiner.java
This commit is contained in:
parent
f041156c7e
commit
a6fe1cf8e2
1 changed files with 14 additions and 0 deletions
|
@ -35,6 +35,20 @@ public class Combiner {
|
|||
public static final String name = "Mekanism Combiner";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack itemInput, IItemStack itemOutput, IGasStack gasInput) {
|
||||
if(itemInput == null || gasInput == null || itemOutput == null) {
|
||||
LogHelper.logError(String.format("Required parameters missing for %s Recipe.", name));
|
||||
return;
|
||||
}
|
||||
|
||||
AdvancedMachineInput input = new AdvancedMachineInput(toStack(itemInput), toGas(gasInput).getGas());
|
||||
ItemStackOutput output = new ItemStackOutput(toStack(itemOutput));
|
||||
CombinerRecipe recipe = new CombinerRecipe(input, output);
|
||||
|
||||
MineTweakerAPI.apply(new AddMekanismRecipe(name, Recipe.COMBINER.get(), recipe));
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@ZenMethod
|
||||
|
|
Loading…
Reference in a new issue