Allow using ore dict entries in CraftTweaker Closes #1396
This commit is contained in:
parent
d948db1b7f
commit
3b914e658c
26 changed files with 38 additions and 38 deletions
|
@ -42,8 +42,8 @@ public class CTAlloySmelter extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
AlloySmelterRecipe r = new AlloySmelterRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTAssemblingMachine extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
AssemblingMachineRecipe r = new AssemblingMachineRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTBlastFurnace extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick, int neededHeat) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
BlastFurnaceRecipe r = new BlastFurnaceRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick, neededHeat);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTCentrifuge extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
CentrifugeRecipe r = new CentrifugeRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTChemicalReactor extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
ChemicalReactorRecipe r = new ChemicalReactorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class CTCompressor extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IIngredient input1, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
CompressorRecipe r = new CompressorRecipe(oInput1, CraftTweakerCompat.toStack(output1), ticktime, euTick);
|
||||
addRecipe(r);
|
||||
}
|
||||
|
|
|
@ -42,8 +42,8 @@ public class CTDistillationTower extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
DistillationTowerRecipe r = new DistillationTowerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class CTGrinder extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output, IIngredient input1, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
|
||||
GrinderRecipe r = new GrinderRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTImplosionCompressor extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
ImplosionCompressorRecipe r = new ImplosionCompressorRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ public class CTIndustrialElectrolyzer extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IItemStack output4, IIngredient cells, IIngredient input2, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(cells);
|
||||
ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(cells);
|
||||
Object oInput2 = CraftTweakerCompat.toObject(input2);
|
||||
|
||||
IndustrialElectrolyzerRecipe r = new IndustrialElectrolyzerRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output1), CraftTweakerCompat.toStack(output2), CraftTweakerCompat.toStack(output3), CraftTweakerCompat.toStack(output4), ticktime, euTick);
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ public class CTIndustrialGrinder extends CTGeneric {
|
|||
*/
|
||||
@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) CraftTweakerCompat.toObject(input1);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
|
||||
// There is only one input slot in Industrial Grinder
|
||||
//ItemStack oInput2 = (ItemStack) CraftTweakerCompat.toObject(input2);
|
||||
|
|
|
@ -55,7 +55,7 @@ public class CTIndustrialSawmill extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output1, IItemStack output2, IItemStack output3, IIngredient input1, ILiquidStack fluid, int ticktime, int euTick, boolean useOreDic) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input1);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input1);
|
||||
|
||||
FluidStack fluidStack = null;
|
||||
if (fluid != null) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public class CTVacuumFreezer extends CTGeneric {
|
|||
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack output, IIngredient input, int ticktime, int euTick) {
|
||||
ItemStack oInput1 = (ItemStack) CraftTweakerCompat.toObject(input);
|
||||
Object oInput1 = CraftTweakerCompat.toObject(input);
|
||||
|
||||
VacuumFreezerRecipe r = new VacuumFreezerRecipe(oInput1, CraftTweakerCompat.toStack(output), ticktime, euTick);
|
||||
addRecipe(r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue