diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Autoclave.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Autoclave.java new file mode 100644 index 0000000..4275528 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Autoclave.java @@ -0,0 +1,56 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.liquid.ILiquidStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.Autoclave") +public class Autoclave { + private static final class AddAutoclavingAction extends OneWayAction { + private IItemStack output; + private IItemStack input; + private ILiquidStack lInput; + private int chance; + private int dur; + private int euT; + + public AddAutoclavingAction(IItemStack output, IItemStack input, ILiquidStack lInput, int chance, int dur, + int euT) { + this.output = output; + this.input = input; + this.lInput = lInput; + this.chance = chance; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Adding autoclaving for " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addAutoclaveRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getLiquidStack(lInput) + , MineTweakerMC.getItemStack(output) + , chance, dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output, IItemStack input, ILiquidStack lInput, int chance, int dur, int euT) { + MineTweakerAPI.apply(new AddAutoclavingAction(output, input, lInput, chance, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/ElectroMagneticSeperator.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/ElectroMagneticSeperator.java new file mode 100644 index 0000000..e06f120 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/ElectroMagneticSeperator.java @@ -0,0 +1,59 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.ElectroMagneticSeperator") +public class ElectroMagneticSeperator { + private static final class AddElectromagneticSeperationAction extends OneWayAction { + private IItemStack output1; + private IItemStack output2; + private IItemStack output3; + private IItemStack input; + private int[] chances; + private int dur; + private int euT; + + public AddElectromagneticSeperationAction(IItemStack output1, IItemStack output2, IItemStack output3, + IItemStack input, int[] chances, int dur, int euT) { + this.output1 = output1; + this.output2 = output2; + this.output3 = output3; + this.input = input; + this.chances = chances; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Adding electro-magnetic seperation of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addElectromagneticSeparatorRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getItemStack(output1) + , MineTweakerMC.getItemStack(output2) + , MineTweakerMC.getItemStack(output3) + , chances, dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack input, int[] chances, + int dur, int euT) { + MineTweakerAPI.apply(new AddElectromagneticSeperationAction(output1, output2, output3, input, chances, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/FormingPress.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/FormingPress.java new file mode 100644 index 0000000..09a51e0 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/FormingPress.java @@ -0,0 +1,52 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.FormingPress") +public class FormingPress { + private static final class AddPressFormingAction extends OneWayAction { + private IItemStack output; + private IItemStack input; + private IItemStack form; + private int dur; + private int euT; + + public AddPressFormingAction(IItemStack output, IItemStack input, IItemStack form, int dur, int euT) { + this.output = output; + this.input = input; + this.form = form; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Added press forming of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addFormingPressRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getItemStack(form) + , MineTweakerMC.getItemStack(output) + , dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output, IItemStack input, IItemStack form, int dur, int euT) { + MineTweakerAPI.apply(new AddPressFormingAction(output, input, form, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/LaserEngraver.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/LaserEngraver.java new file mode 100644 index 0000000..cbc10d4 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/LaserEngraver.java @@ -0,0 +1,52 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.LaserEngraver") +public class LaserEngraver { + private static final class AddLaserEngravingAction extends OneWayAction { + private IItemStack output; + private IItemStack input; + private IItemStack lens; + private int dur; + private int euT; + + public AddLaserEngravingAction(IItemStack output, IItemStack input, IItemStack lens, int dur, int euT) { + this.output = output; + this.input = input; + this.lens = lens; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Added laser engraving of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addLaserEngraverRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getItemStack(lens) + , MineTweakerMC.getItemStack(output) + , dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output, IItemStack input, IItemStack lens, int dur, int euT) { + MineTweakerAPI.apply(new AddLaserEngravingAction(output, input, lens, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Mixer.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Mixer.java new file mode 100644 index 0000000..6340437 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Mixer.java @@ -0,0 +1,68 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.liquid.ILiquidStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.Mixer") +public class Mixer { + private static final class AddMixingAction extends OneWayAction { + private IItemStack output; + private ILiquidStack lOutput; + private IItemStack input1; + private IItemStack input2; + private IItemStack input3; + private IItemStack input4; + private int dur; + private int euT; + private ILiquidStack lInput; + + public AddMixingAction(IItemStack output, ILiquidStack lOutput, ILiquidStack lInput, IItemStack input1, IItemStack input2, + IItemStack input3, IItemStack input4, int dur, int euT) { + this.output = output; + this.lOutput = lOutput; + this.lInput = lInput; + this.input1 = input1; + this.input2 = input2; + this.input3 = input3; + this.input4 = input4; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Adding mixing w/ multiple inputs"; + } + + @Override + public void apply() { + RA.addMixerRecipe(MineTweakerMC.getItemStack(input1) + , MineTweakerMC.getItemStack(input2) + , MineTweakerMC.getItemStack(input3) + , MineTweakerMC.getItemStack(input4) + , MineTweakerMC.getLiquidStack(lInput) + , MineTweakerMC.getLiquidStack(lOutput) + , MineTweakerMC.getItemStack(output) + , dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output, ILiquidStack lOutput, ILiquidStack lInput, IItemStack input1, IItemStack input2, + IItemStack input3, IItemStack input4, int dur, int euT) { + MineTweakerAPI.apply(new AddMixingAction(output, lOutput, lInput, input1, input2, input3, input4, dur, euT)); + } + +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Printer.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Printer.java new file mode 100644 index 0000000..e4b8e22 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Printer.java @@ -0,0 +1,57 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.liquid.ILiquidStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.printer") +public class Printer { + private static final class AddPrintingAction extends OneWayAction { + private IItemStack output; + private IItemStack input; + private IItemStack special; + private ILiquidStack ink; + private int dur; + private int euT; + + public AddPrintingAction(IItemStack output, IItemStack input, IItemStack special, ILiquidStack ink, int dur, + int euT) { + this.output = output; + this.input = input; + this.special = special; + this.ink = ink; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Added printing of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addPrinterRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getLiquidStack(ink) + , MineTweakerMC.getItemStack(special) + , MineTweakerMC.getItemStack(output) + , dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack output, IItemStack input, IItemStack special, ILiquidStack ink, int dur, int euT) { + MineTweakerAPI.apply(new AddPrintingAction(output, input, special, ink, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Pulveriser.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Pulveriser.java new file mode 100644 index 0000000..6cb4542 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Pulveriser.java @@ -0,0 +1,51 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.Pulveriser") +public class Pulveriser { + private static final class AddPulverisingAction extends OneWayAction { + private IItemStack[] outputs; + private IItemStack input; + private int[] chances; + private int dur; + private int euT; + + public AddPulverisingAction(IItemStack[] outputs, IItemStack input, int[] chances, int dur, int euT) { + this.outputs = outputs; + this.input = input; + this.chances = chances; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Added pulverising of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addPulveriserRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getItemStacks(outputs) + , chances, dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack[] outputs, IItemStack input, int[] chances, int dur, int euT) { + MineTweakerAPI.apply(new AddPulverisingAction(outputs, input, chances, dur, euT)); + } +} diff --git a/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Sifter.java b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Sifter.java new file mode 100644 index 0000000..7834397 --- /dev/null +++ b/MineTweaker3-MC1710-Mod-GregTech/src/main/java/minetweaker/mods/gregtech/machines/Sifter.java @@ -0,0 +1,51 @@ +package minetweaker.mods.gregtech.machines; + +import static gregtech.api.enums.GT_Values.RA; + +import minetweaker.MineTweakerAPI; +import minetweaker.OneWayAction; +import minetweaker.api.item.IItemStack; +import minetweaker.api.minecraft.MineTweakerMC; +import stanhebben.zenscript.annotations.ZenClass; +import stanhebben.zenscript.annotations.ZenMethod; + +@ZenClass("mods.gregtech.Sifter") +public class Sifter { + private static final class AddSiftingAction extends OneWayAction { + private IItemStack[] outputs; + private IItemStack input; + private int[] chances; + private int dur; + private int euT; + + public AddSiftingAction(IItemStack[] outputs, IItemStack input, int[] chances, int dur, int euT) { + this.outputs = outputs; + this.input = input; + this.chances = chances; + this.dur = dur; + this.euT = euT; + } + + @Override + public Object getOverrideKey() { + return null; + } + + @Override + public String describe() { + return "Added sifting of " + input.getDisplayName(); + } + + @Override + public void apply() { + RA.addSifterRecipe(MineTweakerMC.getItemStack(input) + , MineTweakerMC.getItemStacks(outputs) + , chances, dur, euT); + } + } + + @ZenMethod + public static void addRecipe(IItemStack[] outputs, IItemStack input, int[] chances, int dur, int euT) { + MineTweakerAPI.apply(new AddSiftingAction(outputs, input, chances, dur, euT)); + } +}