Search in sources :

Example 1 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class GearRecipeLoader method postInit.

@Override
public void postInit() {
    if (DefinedGenItems.GEAR.item != null) {
        if (Engine.itemSimpleCraftingTools != null) {
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.GEAR.item, 2, GenMaterial.WOOD.ordinal()), "WH", "DC", 'W', OreNames.WOOD, 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'D', Engine.itemSimpleCraftingTools.getDrill()));
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.GEAR.item, 2, GenMaterial.WOOD.ordinal()), "HS ", "SWS", " SC", 'W', OreNames.WOOD, 'S', OreNames.WOOD_STICK, 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel()));
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.GEAR.item, 1, GenMaterial.STONE.ordinal()), "WH", "DC", 'W', OreNames.STONE, 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'D', Engine.itemSimpleCraftingTools.getDrill()));
            EnumSet<GenMaterial> mats = EnumSet.allOf(GenMaterial.class);
            mats.remove(GenMaterial.UNKNOWN);
            for (GenMaterial material : mats) {
                if (OreDictionary.getOres("ingot" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), false).size() > 0 && !DefinedGenItems.GEAR.ignoreMaterials.contains(material)) {
                    //TODO change tools to iron
                    GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.GEAR.item, 1, material.ordinal()), "WH", "DC", 'W', "ingot" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'D', Engine.itemSimpleCraftingTools.getDrill()));
                }
            }
        }
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) GenMaterial(com.builtbroken.mc.core.content.resources.GenMaterial) ItemStack(net.minecraft.item.ItemStack)

Example 2 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class PlateRecipeLoader method postInit.

@Override
public void postInit() {
    if (DefinedGenItems.PLATE.item != null) {
        if (Engine.itemSimpleCraftingTools != null) {
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.PLATE.item, 1, GenMaterial.WOOD.ordinal()), "H ", "CW", 'W', "plankWood", 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel()));
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.PLATE.item, 1, GenMaterial.STONE.ordinal()), "H ", "CW", 'W', "stone", 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'F', Engine.itemSimpleCraftingTools.getFile()));
            EnumSet<GenMaterial> mats = EnumSet.allOf(GenMaterial.class);
            mats.remove(GenMaterial.UNKNOWN);
            mats.remove(GenMaterial.WOOD);
            mats.remove(GenMaterial.STONE);
            for (GenMaterial material : mats) {
                if (!DefinedGenItems.PLATE.ignoreMaterials.contains(material)) {
                    //TODO change to iron tools
                    GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.PLATE.item, 1, material.ordinal()), "WH", "F ", 'W', "ingot" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), 'H', Engine.itemSimpleCraftingTools.getHammer(), 'F', Engine.itemSimpleCraftingTools.getFile()));
                }
            }
        }
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) GenMaterial(com.builtbroken.mc.core.content.resources.GenMaterial) ItemStack(net.minecraft.item.ItemStack)

Example 3 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class RodRecipeLoader method postInit.

@Override
public void postInit() {
    if (DefinedGenItems.ROD.item != null) {
        if (Engine.itemSimpleCraftingTools != null) {
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.ROD.item, 1, GenMaterial.WOOD.ordinal()), "WH", "FC", 'W', "plankWood", 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'F', Engine.itemSimpleCraftingTools.getFile()));
            GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.ROD.item, 1, GenMaterial.STONE.ordinal()), "WH", "FC", 'W', "stone", 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'F', Engine.itemSimpleCraftingTools.getFile()));
            EnumSet<GenMaterial> mats = EnumSet.allOf(GenMaterial.class);
            mats.remove(GenMaterial.UNKNOWN);
            mats.remove(GenMaterial.WOOD);
            mats.remove(GenMaterial.STONE);
            for (GenMaterial material : mats) {
                if (!DefinedGenItems.ROD.ignoreMaterials.contains(material)) {
                    //TODO change to iron tools
                    GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.ROD.item, 1, material.ordinal()), "WH", "FC", 'W', "ingot" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), 'H', Engine.itemSimpleCraftingTools.getHammer(), 'C', Engine.itemSimpleCraftingTools.getChisel(), 'F', Engine.itemSimpleCraftingTools.getFile()));
                }
            }
        }
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) GenMaterial(com.builtbroken.mc.core.content.resources.GenMaterial) ItemStack(net.minecraft.item.ItemStack)

Example 4 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class ScrewRecipeLoader method postInit.

@Override
public void postInit() {
    if (DefinedGenItems.SCREW.item != null) {
        if (Engine.itemSimpleCraftingTools != null) {
            EnumSet<GenMaterial> mats = EnumSet.allOf(GenMaterial.class);
            mats.remove(GenMaterial.UNKNOWN);
            for (GenMaterial material : mats) {
                if (OreDictionary.getOres("nugget" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), false).size() > 0 && !DefinedGenItems.SCREW.ignoreMaterials.contains(material)) {
                    //TODO change tools to iron
                    GameRegistry.addRecipe(new RecipeTool(new ItemStack(DefinedGenItems.SCREW.item, 1, material.ordinal()), "WH", " F", 'W', "nugget" + LanguageUtility.capitalizeFirst(material.name().toLowerCase()), 'F', Engine.itemSimpleCraftingTools.getFile(), 'H', Engine.itemSimpleCraftingTools.getHammer()));
                }
            }
        }
    }
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) GenMaterial(com.builtbroken.mc.core.content.resources.GenMaterial) ItemStack(net.minecraft.item.ItemStack)

Example 5 with RecipeTool

use of com.builtbroken.mc.lib.recipe.item.RecipeTool in project Engine by VoltzEngine-Project.

the class ItemSimpleCraftingTool method onPostInit.

@Override
public void onPostInit() {
    //Hammer recipe
    GameRegistry.addRecipe(new RecipeShapedOre(getHammer(), "S", "t", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK));
    //Chisel recipe
    GameRegistry.addRecipe(new RecipeShapedOre(getChisel(), "t", "S", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK));
    //File recipe
    GameRegistry.addRecipe(new RecipeTool(getFile(), "th", "Sc", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK, 'c', getChisel(), 'h', getHammer()));
    GameRegistry.addRecipe(new RecipeTool(getFile(), "tc", "Sh", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK, 'c', getChisel(), 'h', getHammer()));
    if (Engine.itemSheetMetalTools != null) {
        GameRegistry.addRecipe(new RecipeTool(getFile(), "th", "Sc", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK, 'c', getChisel(), 'h', Engine.itemSheetMetalTools.getHammer()));
        GameRegistry.addRecipe(new RecipeTool(getFile(), "tc", "Sh", 'S', OreNames.STONE, 't', OreNames.WOOD_STICK, 'c', getChisel(), 'h', Engine.itemSheetMetalTools.getHammer()));
    }
    //Drill recipe
    GameRegistry.addRecipe(new RecipeShapedOre(getDrill(), "tGs", "Gtt", "sF ", 's', OreNames.STRING, 'G', OreNames.WOOD_GEAR, 'F', OreNames.FLINT, 't', OreNames.WOOD_STICK));
    //Cutter recipe
    GameRegistry.addRecipe(new RecipeTool(getCutters(), "tft", "dsh", "g g", 's', OreNames.SCREW_IRON, 'g', OreNames.ROD_IRON, 't', OreNames.INGOT_IRON, 'd', getDrill(), 'h', getHammer(), 'f', getFile()));
}
Also used : RecipeTool(com.builtbroken.mc.lib.recipe.item.RecipeTool) RecipeShapedOre(com.builtbroken.mc.lib.recipe.item.RecipeShapedOre)

Aggregations

RecipeTool (com.builtbroken.mc.lib.recipe.item.RecipeTool)7 ItemStack (net.minecraft.item.ItemStack)6 GenMaterial (com.builtbroken.mc.core.content.resources.GenMaterial)5 RecipeShapedOre (com.builtbroken.mc.lib.recipe.item.RecipeShapedOre)1