This commit is contained in:
Modmuss50 2015-10-07 11:15:55 +01:00
parent 9798bb106b
commit 6a404ba617
11 changed files with 2 additions and 48 deletions

View file

@ -28,12 +28,7 @@ public class MTAlloySmelter {
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
AlloySmelterRecipe r = new AlloySmelterRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output), ticktime, euTick);

View file

@ -22,12 +22,7 @@ public class MTAssemblingMachine {
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
AssemblingMachineRecipe r = new AssemblingMachineRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output), ticktime, euTick);

View file

@ -21,12 +21,7 @@ public class MTBlastFurnace {
@ZenMethod
public static void addRecipe(IItemStack output1,IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick, int neededHeat) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
BlastFurnaceRecipe r = new BlastFurnaceRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), MinetweakerCompat.toStack(output2), ticktime, euTick, neededHeat);

View file

@ -21,12 +21,7 @@ public class MTCentrifuge {
@ZenMethod
public static void addRecipe(IItemStack output1,IItemStack output2,IItemStack output3,IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
CentrifugeRecipe r = new CentrifugeRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), MinetweakerCompat.toStack(output2),MinetweakerCompat.toStack(output3), MinetweakerCompat.toStack(output4), ticktime, euTick);

View file

@ -21,12 +21,7 @@ public class MTChemicalReactor{
@ZenMethod
public static void addRecipe(IItemStack output1, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
ChemicalReactorRecipe r = new ChemicalReactorRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), ticktime, euTick);

View file

@ -28,12 +28,8 @@ public class MTGrinder {
@ZenMethod
public static void addRecipe(IItemStack output1 ,IItemStack output2 ,IItemStack output3,IItemStack output4, IIngredient input1, IIngredient input2, ILiquidStack fluid, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
FluidStack fluidStack = null;
if(fluid != null){

View file

@ -21,12 +21,8 @@ public class MTImplosionCompressor {
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
ImplosionCompressorRecipe r = new ImplosionCompressorRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), MinetweakerCompat.toStack(output2), ticktime, euTick);

View file

@ -21,12 +21,7 @@ public class MTIndustrialElectrolyzer {
@ZenMethod
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4,IIngredient cells, IIngredient input2, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(cells);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
IndustrialElectrolyzerRecipe r = new IndustrialElectrolyzerRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output1), MinetweakerCompat.toStack(output2), MinetweakerCompat.toStack(output3), MinetweakerCompat.toStack(output4), ticktime, euTick);

View file

@ -39,12 +39,8 @@ public class MTIndustrialSawmill {
@ZenMethod
public static void addRecipe(IItemStack output1 ,IItemStack output2 ,IItemStack output3, IIngredient input1, IIngredient input2, ILiquidStack fluid, int ticktime, int euTick, boolean useOreDic) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
if (oInput2 == null)
return;
FluidStack fluidStack = null;
if(fluid != null){

View file

@ -22,8 +22,6 @@ public class MTLathe {
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
LatheRecipe r = new LatheRecipe(oInput1, MinetweakerCompat.toStack(output), ticktime, euTick);

View file

@ -22,9 +22,7 @@ public class MTPlateCuttingMachine {
@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
if (oInput1 == null)
return;
PlateCuttingMachineRecipe r = new PlateCuttingMachineRecipe(oInput1, MinetweakerCompat.toStack(output), ticktime, euTick);
PlateCuttingMachineRecipe r = new PlateCuttingMachineRecipe(oInput1, MinetweakerCompat.toStack(output), ticktime, euTick);
MineTweakerAPI.apply(new Add(r));