Search in sources :

Example 36 with ShapedOreRecipe

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

the class ExEMP method init.

@Override
public void init() {
    boolean registered = false;
    //IC2:itemAdvBat
    Object[] items = { "battery", InventoryUtility.getItem("IC2:itemBatRE"), "capacitorBasic" };
    for (Object object : items) {
        if (object != null && (!(object instanceof String) || OreDictionary.doesOreNameExist((String) object))) {
            RecipeUtility.addRecipe(new ShapedOreRecipe(Explosives.EMP.getItemStack(), "RBR", "BTB", "RBR", 'T', Explosives.REPLUSIVE.getItemStack(), 'R', Blocks.redstone_block, 'B', object), this.getUnlocalizedName(), ICBMClassic.INSTANCE.getConfig(), true);
            registered = true;
        }
    }
    if (!registered) {
        RecipeUtility.addRecipe(new ShapedOreRecipe(Explosives.EMP.getItemStack(), "RBR", "BTB", "RBR", 'T', Explosives.REPLUSIVE.getItemStack(), 'R', Blocks.redstone_block, 'B', Items.emerald), this.getUnlocalizedName(), ICBMClassic.INSTANCE.getConfig(), true);
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe)

Example 37 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.

the class CoFHCore method preInit.

@Override
public void preInit() {
    pneumaticDynamo = new BlockPneumaticDynamo(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("pneumaticDynamo");
    fluxCompressor = new BlockFluxCompressor(Material.iron).setHardness(3.0F).setResistance(10.0F).setBlockName("fluxCompressor");
    Blockss.registerBlock(pneumaticDynamo);
    Blockss.registerBlock(fluxCompressor);
    GameRegistry.registerTileEntity(TileEntityPneumaticDynamo.class, "PneumaticCraft_pneumaticDynamo");
    GameRegistry.registerTileEntity(TileEntityFluxCompressor.class, "PneumaticCraft_fluxCompressor");
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Itemss.compressedIronGear), " i ", "isi", " i ", 'i', Names.INGOT_IRON_COMPRESSED, 's', Items.iron_ingot));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(pneumaticDynamo), " t ", "gig", "ipi", 'i', Names.INGOT_IRON_COMPRESSED, 'g', Itemss.compressedIronGear, 't', Blockss.advancedPressureTube, 'p', Itemss.printedCircuitBoard));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(fluxCompressor), "gcp", "frt", "gqp", 'p', Itemss.printedCircuitBoard, 'c', Itemss.compressedIronGear, 'g', Items.redstone, 't', new ItemStack(Blockss.advancedPressureTube, 1, 0), 'r', Itemss.turbineRotor, 'f', Blocks.redstone_block, 'q', Blocks.furnace));
    PneumaticRegistry.getInstance().registerBlockTrackEntry(new BlockTrackEntryRF());
    PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFExport());
    PneumaticRegistry.getInstance().registerCustomBlockInteractor(new DroneInteractRFImport());
    WidgetRegistrator.register(new ProgWidgetRFCondition());
    WidgetRegistrator.register(new ProgWidgetDroneConditionRF());
    MinecraftForge.EVENT_BUS.register(this);
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 38 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.

the class ComputerCraft method init.

@Override
public void init() {
    if (Loader.isModLoaded(ModIds.OPEN_COMPUTERS))
        super.init();
    Block modem = GameRegistry.findBlock(ModIds.COMPUTERCRAFT, "CC-Peripheral");
    if (modem != null) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(droneInterface), true, " u ", "mp ", "iii", 'u', new ItemStack(Itemss.machineUpgrade, 1, ItemMachineUpgrade.UPGRADE_RANGE), 'm', new ItemStack(modem, 1, 1), 'p', Itemss.printedCircuitBoard, 'i', Names.INGOT_IRON_COMPRESSED));
    } else {
        Log.error("Wireless Modem block not found! Using the backup recipe");
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(droneInterface), true, " u ", "mp ", "iii", 'u', new ItemStack(Itemss.machineUpgrade, 1, ItemMachineUpgrade.UPGRADE_RANGE), 'm', Items.ender_pearl, 'p', Itemss.printedCircuitBoard, 'i', Names.INGOT_IRON_COMPRESSED));
    }
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) Block(net.minecraft.block.Block) ItemStack(net.minecraft.item.ItemStack)

Example 39 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.

the class CraftingRegistrator method addRecipe.

private static void addRecipe(ItemStack result, Object... recipe) {
    ShapedOreRecipe newRecipe = new ShapedOreRecipe(result, recipe);
    GameRegistry.addRecipe(newRecipe);
    scanForFluids(newRecipe);
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe)

Example 40 with ShapedOreRecipe

use of net.minecraftforge.oredict.ShapedOreRecipe in project PneumaticCraft by MineMaarten.

the class Hydraulicraft method registrarHandling.

public static void registrarHandling(IHydraulicraftRegistrar registrar) {
    registrar.registerTrolley(new TrolleyPlasticPlants());
    ItemStack cropsTrolly = registrar.getTrolleyItem("plasticPlants");
    cropsTrolly.stackSize = 4;
    Block pressureCore = GameData.getBlockRegistry().getObject(ModIds.HC + ":LPBlockCore");
    Block pressureWall = GameData.getBlockRegistry().getObject(ModIds.HC + ":hydraulicPressureWall");
    Block hydraulicPiston = GameData.getBlockRegistry().getObject(ModIds.HC + ":hydraulicPiston");
    GameRegistry.addRecipe(new ShapedOreRecipe(cropsTrolly, true, "-P-", "WCW", "-H-", 'C', new ItemStack(pressureCore, 1, 1), 'W', pressureWall, 'H', Itemss.turbineRotor, 'P', hydraulicPiston));
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) Block(net.minecraft.block.Block) 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