Search in sources :

Example 1 with AlloySmelterRecipe

use of techreborn.api.recipe.machines.AlloySmelterRecipe in project TechReborn by TechReborn.

the class AlloySmelterRecipes method init.

public static void init() {
    // Bronze
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16));
    // Electrum
    RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), ItemIngots.getIngotByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), ItemDusts.getDustByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemIngots.getIngotByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemDusts.getDustByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16));
    // Invar
    RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 2), ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 2), ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16));
    RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16));
    // Brass
    if (OreUtil.doesOreExistAndValid("ingotBrass")) {
        ItemStack brassStack = getOre("ingotBrass");
        brassStack.setCount(4);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("zinc", 1), brassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("zinc", 1), brassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("zinc", 1), brassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("zinc", 1), brassStack, 200, 16));
    }
    // Red Alloy
    if (OreUtil.doesOreExistAndValid("ingotRedAlloy")) {
        ItemStack redAlloyStack = getOre("ingotRedAlloy");
        redAlloyStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 4), ItemIngots.getIngotByName("copper", 1), redAlloyStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 4), new ItemStack(Items.IRON_INGOT, 1), redAlloyStack, 200, 16));
    }
    // Blue Alloy
    if (OreUtil.doesOreExistAndValid("ingotBlueAlloy")) {
        ItemStack blueAlloyStack = getOre("ingotBlueAlloy");
        blueAlloyStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("teslatite", 4), ItemIngots.getIngotByName("silver", 1), blueAlloyStack, 200, 16));
    }
    // Blue Alloy
    if (OreUtil.doesOreExistAndValid("ingotPurpleAlloy") && OreUtil.doesOreExistAndValid("dustInfusedTeslatite")) {
        ItemStack purpleAlloyStack = getOre("ingotPurpleAlloy");
        purpleAlloyStack.setCount(1);
        ItemStack infusedTeslatiteStack = getOre("ingotPurpleAlloy");
        infusedTeslatiteStack.setCount(8);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("redAlloy", 1), ItemIngots.getIngotByName("blueAlloy", 1), purpleAlloyStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.GOLD_INGOT, 1), infusedTeslatiteStack, purpleAlloyStack, 200, 16));
    }
    // Aluminum Brass
    if (OreUtil.doesOreExistAndValid("ingotAluminumBrass")) {
        ItemStack aluminumBrassStack = getOre("ingotAluminumBrass");
        aluminumBrassStack.setCount(4);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("aluminum", 1), aluminumBrassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("aluminum", 1), aluminumBrassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("aluminum", 1), aluminumBrassStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("aluminum", 1), aluminumBrassStack, 200, 16));
    }
    // Manyullyn
    if (OreUtil.doesOreExistAndValid("ingotManyullyn") && OreUtil.doesOreExistAndValid("ingotCobalt") && OreUtil.doesOreExistAndValid("ingotArdite")) {
        ItemStack manyullynStack = getOre("ingotManyullyn");
        manyullynStack.setCount(1);
        ItemStack cobaltStack = getOre("ingotCobalt");
        cobaltStack.setCount(1);
        ItemStack arditeStack = getOre("ingotArdite");
        arditeStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(cobaltStack, arditeStack, manyullynStack, 200, 16));
    }
    // Conductive Iron
    if (OreUtil.doesOreExistAndValid("ingotConductiveIron")) {
        ItemStack conductiveIronStack = getOre("ingotConductiveIron");
        conductiveIronStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 1), new ItemStack(Items.IRON_INGOT, 1), conductiveIronStack, 200, 16));
    }
    // Redstone Alloy
    if (OreUtil.doesOreExistAndValid("ingotRedstoneAlloy") && OreUtil.doesOreExistAndValid("itemSilicon")) {
        ItemStack redstoneAlloyStack = getOre("ingotRedstoneAlloy");
        redstoneAlloyStack.setCount(1);
        ItemStack siliconStack = getOre("itemSilicon");
        siliconStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.REDSTONE, 1), siliconStack, redstoneAlloyStack, 200, 16));
    }
    // Pulsating Iron
    if (OreUtil.doesOreExistAndValid("ingotPhasedIron")) {
        ItemStack pulsatingIronStack = getOre("ingotPhasedIron");
        pulsatingIronStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 1), new ItemStack(Items.ENDER_PEARL, 1), pulsatingIronStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.IRON_INGOT, 1), ItemDusts.getDustByName("ender_pearl", 1), pulsatingIronStack, 200, 16));
    }
    // Vibrant Alloy
    if (OreUtil.doesOreExistAndValid("ingotEnergeticAlloy") && OreUtil.doesOreExistAndValid("ingotPhasedGold")) {
        ItemStack energeticAlloyStack = getOre("ingotEnergeticAlloy");
        energeticAlloyStack.setCount(1);
        ItemStack vibrantAlloyStack = getOre("ingotPhasedGold");
        vibrantAlloyStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(energeticAlloyStack, new ItemStack(Items.ENDER_PEARL, 1), vibrantAlloyStack, 200, 16));
        RecipeHandler.addRecipe(new AlloySmelterRecipe(energeticAlloyStack, ItemDusts.getDustByName("ender_pearl", 1), vibrantAlloyStack, 200, 16));
    }
    // Soularium
    if (OreUtil.doesOreExistAndValid("ingotSoularium")) {
        ItemStack soulariumStack = getOre("ingotSoularium");
        soulariumStack.setCount(1);
        RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Blocks.SOUL_SAND, 1), new ItemStack(Items.GOLD_INGOT, 1), soulariumStack, 200, 16));
    }
}
Also used : AlloySmelterRecipe(techreborn.api.recipe.machines.AlloySmelterRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 2 with AlloySmelterRecipe

use of techreborn.api.recipe.machines.AlloySmelterRecipe in project TechReborn by TechReborn.

the class CTAlloySmelter method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
    Object oInput1 = CraftTweakerCompat.toObject(input1);
    Object oInput2 = CraftTweakerCompat.toObject(input2);
    AlloySmelterRecipe r = new AlloySmelterRecipe(oInput1, oInput2, CraftTweakerCompat.toStack(output), ticktime, euTick);
    addRecipe(r);
}
Also used : AlloySmelterRecipe(techreborn.api.recipe.machines.AlloySmelterRecipe) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Example 3 with AlloySmelterRecipe

use of techreborn.api.recipe.machines.AlloySmelterRecipe in project TechReborn by TechReborn.

the class MTAlloySmelter method addRecipe.

@ZenMethod
public static void addRecipe(IItemStack output, IIngredient input1, IIngredient input2, int ticktime, int euTick) {
    ItemStack oInput1 = (ItemStack) MinetweakerCompat.toObject(input1);
    ItemStack oInput2 = (ItemStack) MinetweakerCompat.toObject(input2);
    AlloySmelterRecipe r = new AlloySmelterRecipe(oInput1, oInput2, MinetweakerCompat.toStack(output), ticktime, euTick);
    addRecipe(r);
}
Also used : AlloySmelterRecipe(techreborn.api.recipe.machines.AlloySmelterRecipe) IItemStack(minetweaker.api.item.IItemStack) ItemStack(net.minecraft.item.ItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

AlloySmelterRecipe (techreborn.api.recipe.machines.AlloySmelterRecipe)3 ItemStack (net.minecraft.item.ItemStack)2 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)2 IItemStack (minetweaker.api.item.IItemStack)1