Search in sources :

Example 41 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project BetterWithAddons by DaedalusGame.

the class InteractionBWM method registerCompressRecipe.

private static void registerCompressRecipe(ItemStack small, ItemStack big, String oreSmall, String oreBig) {
    // ingot -> block
    GameRegistry.addRecipe(new ShapedOreRecipe(big, "###", "###", "###", '#', oreSmall));
    // block -> 9 ingot
    small = small.copy();
    small.setCount(9);
    GameRegistry.addRecipe(new ShapelessOreRecipe(small, oreBig));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ShapelessOreRecipe(net.minecraftforge.oredict.ShapelessOreRecipe)

Example 42 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project AgriCraft by AgriCraft.

the class BlockWaterChannel method registerRecipes.

@Override
public void registerRecipes() {
    // "Correct" wooden bowl recipe, so that may register channel recipe.
    RegisterHelper.removeRecipe(new ItemStack(Items.BOWL));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.BOWL, 4), "w w", " w ", 'w', "slabWood"));
    // Register channel recipe.
    CustomWoodRecipeHelper.registerCustomWoodRecipe(this, 6, true, "w w", " w ", 'w', CustomWoodRecipeHelper.MATERIAL_PARAMETER);
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 43 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project AgriCraft by AgriCraft.

the class ItemNugget method registerRecipes.

@Override
public void registerRecipes() {
    for (AgriNuggetType type : AgriNuggetType.values()) {
        ItemStack nugget = new ItemStack(this, 9, type.ordinal());
        ItemStack ingot = OreDictHelper.getIngot(type.ingot);
        AgriCore.getLogger("agricraft").debug("Registering Nugget: {0} For: {1}", type.nugget, type.ingot);
        if (ingot != null) {
            GameRegistry.addRecipe(new ShapedOreRecipe(ingot, "nnn", "nnn", "nnn", 'n', type.nugget));
            GameRegistry.addRecipe(new ShapelessOreRecipe(nugget, type.ingot));
        }
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ShapelessOreRecipe(net.minecraftforge.oredict.ShapelessOreRecipe) AgriNuggetType(com.infinityraider.agricraft.reference.AgriNuggetType) ItemStack(net.minecraft.item.ItemStack)

Example 44 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project AgriCraft by AgriCraft.

the class ItemRake method registerRecipes.

@Override
public void registerRecipes() {
    // Normal Rake Recipe
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(this, 1, 0), "fs", 'f', "fenceWood", 's', "stickWood"));
    // Iron Rake Recipe
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(this, 1, 1), "fs", 'f', Blocks.IRON_BARS, 's', "stickWood"));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 45 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project ICBM-Classic by BuiltBrokenModding.

the class BlockSpikes method genRecipes.

@Override
public void genRecipes(List<IRecipe> recipes) {
    recipes.add(new ShapedOreRecipe(new ItemStack(this, 6), "CCC", "BBB", 'C', Blocks.cactus, 'B', Items.iron_ingot));
    recipes.add(new ShapedOreRecipe(new ItemStack(this, 1, 1), "E", "S", 'E', ICBMClassic.itemPoisonPowder, 'S', this));
    recipes.add(new ShapedOreRecipe(new ItemStack(this, 1, 2), "E", "S", 'E', "dustSulfur", 'S', this));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)73 ItemStack (net.minecraft.item.ItemStack)63 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)19 ResourceLocation (net.minecraft.util.ResourceLocation)8 IRecipe (net.minecraft.item.crafting.IRecipe)7 ArrayList (java.util.ArrayList)6 Item (net.minecraft.item.Item)6 List (java.util.List)5 ShapedRecipes (net.minecraft.item.crafting.ShapedRecipes)5 Block (net.minecraft.block.Block)4 ShapelessRecipes (net.minecraft.item.crafting.ShapelessRecipes)3 Book (amerifrance.guideapi.api.impl.Book)2 CategoryAbstract (amerifrance.guideapi.api.impl.abstraction.CategoryAbstract)2 CategoryItemStack (amerifrance.guideapi.category.CategoryItemStack)2 EntryItemStack (amerifrance.guideapi.entry.EntryItemStack)2 PageFurnaceRecipe (amerifrance.guideapi.page.PageFurnaceRecipe)2 PageIRecipe (amerifrance.guideapi.page.PageIRecipe)2 PageText (amerifrance.guideapi.page.PageText)2 AgriNuggetType (com.infinityraider.agricraft.reference.AgriNuggetType)2 SpellRecipeItemsEvent (am2.api.events.SpellRecipeItemsEvent)1