mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-11 15:57:52 +00:00
Update Transposer.java
This commit is contained in:
1 parent
137a334965
commit
7cb0cc499f
1 file changed
+9
@@ -22,6 +22,7 @@ import modtweaker2.utils.BaseListAddition;
|
||||
import modtweaker2.utils.BaseListRemoval;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
import stanhebben.zenscript.annotations.Optional;
|
||||
import cofh.thermalexpansion.util.crafting.TransposerManager;
|
||||
import cofh.thermalexpansion.util.crafting.TransposerManager.RecipeTransposer;
|
||||
|
||||
@@ -53,7 +54,15 @@ public class Transposer {
|
||||
LogHelper.logError(String.format("Error while creating instance for %s recipe.", nameFill));
|
||||
}
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void addExtractRecipe(int energy, IItemStack input, ILiquidStack liquid, @Optional IItemStack output, @Optional int chance) {
|
||||
if(input == null || output == null || liquid == null) {
|
||||
LogHelper.logError(String.format("Required parameters missing for %s Recipe.", nameExtract));
|
||||
return;
|
||||
}
|
||||
|
||||
//Deprecated
|
||||
@ZenMethod
|
||||
public static void addExtractRecipe(int energy, IItemStack input, IItemStack output, ILiquidStack liquid, int chance) {
|
||||
if(input == null || output == null || liquid == null) {
|
||||
|
||||
Reference in new issue
Block a user