Search in sources :

Example 1 with MinecraftColor

use of com.bluepowermod.api.misc.MinecraftColor in project BluePower by Qmunity.

the class OreDictionarySetup method init.

public static void init() {
    // Ores
    OreDictionary.registerOre(BPOredictNames.ORE_COPPER, BPBlocks.copper_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_ZINC, BPBlocks.zinc_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_SILVER, BPBlocks.silver_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_TUNGSTEN, BPBlocks.tungsten_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_TESLATITE, BPBlocks.teslatite_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_AMETHYST, BPBlocks.amethyst_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_RUBY, BPBlocks.ruby_ore);
    OreDictionary.registerOre(BPOredictNames.ORE_SAPPHIRE, BPBlocks.sapphire_ore);
    // Storage blocks
    OreDictionary.registerOre(BPOredictNames.BLOCK_COPPER, BPBlocks.copper_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_ZINC, BPBlocks.zinc_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_SILVER, BPBlocks.silver_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_TUNGSTEN, BPBlocks.tungsten_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_TESLATITE, BPBlocks.teslatite_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_AMETHYST, BPBlocks.amethyst_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_RUBY, BPBlocks.ruby_block);
    OreDictionary.registerOre(BPOredictNames.BLOCK_SAPPHIRE, BPBlocks.sapphire_block);
    // Ingots
    OreDictionary.registerOre(BPOredictNames.INGOT_COPPER, BPItems.copper_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_ZINC, BPItems.zinc_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_SILVER, BPItems.silver_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_TUNGSTEN, BPItems.tungsten_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_BLUE_ALLOY, BPItems.blue_alloy_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_RED_ALLOY, BPItems.red_alloy_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_PURPLE_ALLOY, BPItems.purple_alloy_ingot);
    OreDictionary.registerOre(BPOredictNames.INGOT_BRASS, BPItems.brass_ingot);
    // Dusts
    OreDictionary.registerOre(BPOredictNames.DUST_TESLATITE, BPItems.teslatite_dust);
    OreDictionary.registerOre(BPOredictNames.DUST_INFUSED_TESLATITE, BPItems.infused_teslatite_dust);
    OreDictionary.registerOre(BPOredictNames.DUST_ZINC, BPItems.zinc_dust);
    // Nuggets
    OreDictionary.registerOre("nuggetTungsten", BPItems.tungsten_nugget);
    // Gems
    OreDictionary.registerOre(BPOredictNames.GEM_AMETHYST, BPItems.amethyst_gem);
    OreDictionary.registerOre(BPOredictNames.GEM_RUBY, BPItems.ruby_gem);
    OreDictionary.registerOre(BPOredictNames.GEM_SAPPHIRE, BPItems.sapphire_gem);
    // Dyes
    OreDictionary.registerOre(BPOredictNames.DYE_INDIGO, BPItems.indigo_dye);
    // Circuitry
    OreDictionary.registerOre(BPOredictNames.STONE_TILE, BPItems.stone_tile);
    OreDictionary.registerOre(BPOredictNames.BLUESTONE_TILE, BPItems.bluestone_wire_tile);
    OreDictionary.registerOre(BPOredictNames.BLUESTONE_ANODE, BPItems.bluestone_anode_tile);
    OreDictionary.registerOre(BPOredictNames.BLUESTONE_CATHODE, BPItems.bluestone_cathode_tile);
    OreDictionary.registerOre(BPOredictNames.BLUESTONE_POINTER, BPItems.bluestone_pointer_tile);
    OreDictionary.registerOre(BPOredictNames.REDSTONE_TILE, BPItems.redstone_wire_tile);
    OreDictionary.registerOre(BPOredictNames.REDSTONE_ANODE, BPItems.redstone_anode_tile);
    OreDictionary.registerOre(BPOredictNames.REDSTONE_CATHODE, BPItems.redstone_cathode_tile);
    OreDictionary.registerOre(BPOredictNames.REDSTONE_POINTER, BPItems.redstone_pointer_tile);
    OreDictionary.registerOre(BPOredictNames.SILICON_CHIP, BPItems.silicon_chip_tile);
    OreDictionary.registerOre(BPOredictNames.TAINTED_SILICON_CHIP, BPItems.tainted_silicon_chip_tile);
    OreDictionary.registerOre(BPOredictNames.QUARTZ_RESONATOR, BPItems.quartz_resonator_tile);
    OreDictionary.registerOre(BPOredictNames.BUNDLED_TILE, BPItems.stone_bundle);
    // Other
    OreDictionary.registerOre(BPOredictNames.MARBLE, BPBlocks.marble);
    OreDictionary.registerOre(BPOredictNames.BASALT, BPBlocks.basalt);
    for (Block b : BPBlocks.blockLamp) OreDictionary.registerOre("lampBP", b);
    for (Block b : BPBlocks.blockLampInverted) OreDictionary.registerOre("lampInvertedBP", b);
    for (RedwireType t : RedwireType.values()) {
        for (MinecraftColor c : MinecraftColor.VALID_COLORS) {
            ItemStack wireInsulated = PartManager.getPartInfo("wire." + t.getName() + "." + c.name().toLowerCase()).getStack(1);
            OreDictionary.registerOre(String.format(BPOredictNames.WIRE_INSULATED_, t.getName()), wireInsulated.getItem());
            OreDictionary.registerOre(BPOredictNames.WIRE_INSULATED, wireInsulated.getItem());
            ItemStack wireBundled = PartManager.getPartInfo("wire." + t.getName() + ".bundled." + c.name().toLowerCase()).getStack(1);
            OreDictionary.registerOre(String.format(BPOredictNames.WIRE_BUNDLED_, t.getName()), wireBundled.getItem());
            OreDictionary.registerOre(BPOredictNames.WIRE_BUNDLED, wireBundled.getItem());
        }
        ItemStack wireBundled = PartManager.getPartInfo("wire." + t.getName() + ".bundled").getStack(1);
        OreDictionary.registerOre(String.format(BPOredictNames.WIRE_BUNDLED_, t.getName()), wireBundled.getItem());
        OreDictionary.registerOre(BPOredictNames.WIRE_BUNDLED, wireBundled.getItem());
    }
}
Also used : RedwireType(com.bluepowermod.api.wire.redstone.RedwireType) MinecraftColor(com.bluepowermod.api.misc.MinecraftColor) Block(net.minecraft.block.Block) ItemStack(net.minecraft.item.ItemStack)

Example 2 with MinecraftColor

use of com.bluepowermod.api.misc.MinecraftColor in project BluePower by Qmunity.

the class PartManager method registerParts.

public static void registerParts() {
    PartRegistry.registerFactory(new PartFactory());
    // Digital gates
    registerPart(GateAnd.class);
    registerPart(GateNot.class);
    registerPart(GateOr.class);
    registerPart(GateNand.class);
    registerPart(GateBuffer.class);
    registerPart(GateXor.class);
    registerPart(GateXnor.class);
    registerPart(GateNor.class);
    registerPart(GateTimer.class);
    registerPart(GateSequencer.class);
    registerPart(GateCounter.class);
    registerPart(GateMultiplexer.class);
    registerPart(GatePulseFormer.class);
    registerPart(GateRandomizer.class);
    registerPart(GateToggleLatch.class);
    registerPart(GateRSLatch.class);
    registerPart(GateStateCell.class);
    registerPart(GateRepeater.class);
    registerPart(GateTransparentLatch.class);
    registerPart(GateSynchronizer.class);
    // Analogue gates
    registerPart(GateInverter.class);
    registerPart(GateComparator.class);
    registerPart(GateLightCell.class);
    registerPart(GateRegulableTorch.class);
    // Wireless gates
    registerPart(GateTransceiver.class, false, false);
    registerPart(GateTransceiver.class, true, false);
    registerPart(GateTransceiver.class, false, true);
    registerPart(GateTransceiver.class, true, true);
    // IC's
    registerPart(GateIntegratedCircuit.class, 3);
    registerPart(GateIntegratedCircuit.class, 5);
    registerPart(GateIntegratedCircuit.class, 7);
    // Supported gates
    registerPart(GateNullCell.class);
    // Lamps
    for (int i = 0; i < 2; i++) for (MinecraftColor c : MinecraftColor.VALID_COLORS) registerPart(PartCageLamp.class, c, i == 1);
    for (int i = 0; i < 2; i++) for (MinecraftColor c : MinecraftColor.VALID_COLORS) registerPart(PartFixture.class, c, i == 1);
    // Pneumatic Tubes
    registerPart(PneumaticTube.class);
    registerPart(PneumaticTubeOpaque.class);
    registerPart(RestrictionTube.class);
    registerPart(RestrictionTubeOpaque.class);
    registerPart(MagTube.class);
    registerPart(Accelerator.class);
    // Wires
    for (RedwireType type : RedwireType.values()) {
        registerPart(PartRedwireFaceUninsulated.class, type);
        for (MinecraftColor color : MinecraftColor.VALID_COLORS) registerPart(PartRedwireFaceInsulated.class, type, color);
        registerPart(PartRedwireFaceBundled.class, type, MinecraftColor.NONE);
        for (MinecraftColor color : MinecraftColor.VALID_COLORS) registerPart(PartRedwireFaceBundled.class, type, color);
    }
    for (RedwireType type : RedwireType.values()) {
        registerPart(PartRedwireFreestandingUninsulated.class, type);
        for (MinecraftColor color : MinecraftColor.VALID_COLORS) registerPart(PartRedwireFreestandingInsulated.class, type, color);
        registerPart(PartRedwireFreestandingBundled.class, type, MinecraftColor.NONE);
        for (MinecraftColor color : MinecraftColor.VALID_COLORS) registerPart(PartRedwireFreestandingBundled.class, type, color);
    }
}
Also used : RedwireType(com.bluepowermod.api.wire.redstone.RedwireType) PartRedwireFreestandingInsulated(com.bluepowermod.part.wire.redstone.PartRedwireFreestanding.PartRedwireFreestandingInsulated) MinecraftColor(com.bluepowermod.api.misc.MinecraftColor) PartRedwireFaceInsulated(com.bluepowermod.part.wire.redstone.PartRedwireFace.PartRedwireFaceInsulated) PartRedwireFreestandingBundled(com.bluepowermod.part.wire.redstone.PartRedwireFreestanding.PartRedwireFreestandingBundled) PartRedwireFaceBundled(com.bluepowermod.part.wire.redstone.PartRedwireFace.PartRedwireFaceBundled)

Example 3 with MinecraftColor

use of com.bluepowermod.api.misc.MinecraftColor in project BluePower by Qmunity.

the class BPBlocks method registerBlocks.

private static void registerBlocks() {
    GameRegistry.registerBlock(basalt, Refs.BASALT_NAME);
    GameRegistry.registerBlock(basalt_cobble, Refs.BASALTCOBBLE_NAME);
    GameRegistry.registerBlock(basalt_brick, Refs.BASALTBRICK_NAME);
    GameRegistry.registerBlock(basaltbrick_cracked, Refs.CRACKEDBASALTBRICK_NAME);
    GameRegistry.registerBlock(fancy_basalt, Refs.CHISELEDBASALTBRICK_NAME);
    GameRegistry.registerBlock(basalt_brick_small, Refs.SMALLBASALTBRICK_NAME);
    GameRegistry.registerBlock(cracked_basalt_lava, Refs.CRACKED_BASALT);
    GameRegistry.registerBlock(basalt_tile, Refs.BASALTTILE_NAME);
    GameRegistry.registerBlock(basalt_paver, Refs.BASALTPAVER_NAME);
    GameRegistry.registerBlock(marble, Refs.MARBLE_NAME);
    GameRegistry.registerBlock(marble_brick, Refs.MARBLEBRICK_NAME);
    GameRegistry.registerBlock(fancy_marble, Refs.CHISELEDMARBLEBRICK_NAME);
    GameRegistry.registerBlock(marble_brick_small, Refs.SMALLMARBLEBRICK_NAME);
    GameRegistry.registerBlock(marble_tile, Refs.MARBLETILE_NAME);
    GameRegistry.registerBlock(marble_paver, Refs.MARBLEPAVER_NAME);
    GameRegistry.registerBlock(tiles, Refs.TILES_NAME);
    GameRegistry.registerBlock(teslatite_ore, Refs.TESLATITEORE_NAME);
    GameRegistry.registerBlock(copper_ore, Refs.COPPERORE_NAME);
    GameRegistry.registerBlock(silver_ore, Refs.SILVERORE_NAME);
    GameRegistry.registerBlock(zinc_ore, Refs.ZINCORE_NAME);
    GameRegistry.registerBlock(tungsten_ore, Refs.TUNGSTENORE_NAME);
    GameRegistry.registerBlock(ruby_ore, Refs.RUBYORE_NAME);
    GameRegistry.registerBlock(sapphire_ore, Refs.SAPPHIREORE_NAME);
    GameRegistry.registerBlock(amethyst_ore, Refs.AMETHYSTORE_NAME);
    GameRegistry.registerBlock(ruby_block, Refs.RUBYBLOCK_NAME);
    GameRegistry.registerBlock(sapphire_block, Refs.SAPPHIREBLOCK_NAME);
    GameRegistry.registerBlock(amethyst_block, Refs.AMETHYSTBLOCK_NAME);
    GameRegistry.registerBlock(teslatite_block, Refs.TESLATITEBLOCK_NAME);
    GameRegistry.registerBlock(copper_block, Refs.COPPERBLOCK_NAME);
    GameRegistry.registerBlock(silver_block, Refs.SILVERBLOCK_NAME);
    GameRegistry.registerBlock(zinc_block, Refs.ZINCBLOCK_NAME);
    GameRegistry.registerBlock(tungsten_block, Refs.TUNGSTENBLOCK_NAME);
    GameRegistry.registerBlock(sapphire_glass, Refs.SAPPHIREGLASS_NAME);
    GameRegistry.registerBlock(reinforced_sapphire_glass, ItemBlockTooltip.class, Refs.REINFORCEDSAPPHIREGLASS_NAME);
    GameRegistry.registerBlock(flax_crop, Refs.FLAXCROP_NAME);
    GameRegistry.registerBlock(indigo_flower, Refs.INDIGOFLOWER_NAME);
    GameRegistry.registerBlock(alloyfurnace, Refs.ALLOYFURNACE_NAME);
    GameRegistry.registerBlock(sorting_machine, Refs.SORTING_MACHINE_NAME);
    GameRegistry.registerBlock(block_breaker, Refs.BLOCKBREAKER_NAME);
    GameRegistry.registerBlock(igniter, Refs.BLOCKIGNITER_NAME);
    GameRegistry.registerBlock(buffer, Refs.BLOCKBUFFER_NAME);
    GameRegistry.registerBlock(deployer, Refs.BLOCKDEPLOYER_NAME);
    GameRegistry.registerBlock(project_table, Refs.PROJECTTABLE_NAME);
    GameRegistry.registerBlock(auto_project_table, Refs.AUTOPROJECTTABLE_NAME);
    GameRegistry.registerBlock(circuit_table, Refs.CIRCUITTABLE_NAME);
    GameRegistry.registerBlock(circuit_database, Refs.CIRCUITDATABASE_NAME);
    GameRegistry.registerBlock(transposer, Refs.TRANSPOSER_NAME);
    GameRegistry.registerBlock(ejector, Refs.EJECTOR_NAME);
    GameRegistry.registerBlock(relay, Refs.RELAY_NAME);
    GameRegistry.registerBlock(filter, Refs.FILTER_NAME);
    GameRegistry.registerBlock(retriever, Refs.RETRIEVER_NAME);
    GameRegistry.registerBlock(regulator, Refs.REGULATOR_NAME);
    GameRegistry.registerBlock(item_detector, Refs.ITEMDETECTOR_NAME);
    GameRegistry.registerBlock(manager, Refs.MANAGER_NAME);
    for (int i = 0; i < MinecraftColor.VALID_COLORS.length; i++) {
        MinecraftColor color = MinecraftColor.VALID_COLORS[i];
        GameRegistry.registerBlock(blockLamp[i], Refs.LAMP_NAME + color.name().toLowerCase());
    }
    GameRegistry.registerBlock(blockLampRGB, Refs.LAMP_NAME + "RGB");
    for (int i = 0; i < MinecraftColor.VALID_COLORS.length; i++) {
        MinecraftColor color = MinecraftColor.VALID_COLORS[i];
        GameRegistry.registerBlock(blockLampInverted[i], Refs.LAMP_NAME + "inverted" + color.name().toLowerCase());
    }
    GameRegistry.registerBlock(blockLampRGBInverted, Refs.LAMP_NAME + "invertedRGB");
}
Also used : MinecraftColor(com.bluepowermod.api.misc.MinecraftColor)

Example 4 with MinecraftColor

use of com.bluepowermod.api.misc.MinecraftColor in project BluePower by Qmunity.

the class LogicRecipes method init.

public static void init() {
    // Components
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.bluestone_wire_tile, 1), "#", "W", '#', "dustTeslatite", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.bluestone_anode_tile, 3), " # ", "###", "WWW", '#', "dustTeslatite", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.bluestone_cathode_tile, 1), "T#T", " W ", 'T', "dustTeslatite", '#', Blocks.redstone_torch, 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.bluestone_pointer_tile, 1), " S ", "T#T", " W ", 'S', "stone", '#', Blocks.redstone_torch, 'W', BPOredictNames.STONE_TILE, 'T', "dustTeslatite"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.bluestone_pointer_tile, 1), "S", "T", 'S', "stone", 'T', BPOredictNames.BLUESTONE_CATHODE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.redstone_wire_tile, 1), "#", "W", '#', "dustRedstone", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.redstone_anode_tile, 3), " # ", "###", "WWW", '#', "dustRedstone", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.redstone_cathode_tile, 1), "#", "W", '#', Blocks.redstone_torch, 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.redstone_pointer_tile, 1), "S", "#", "W", 'S', "stone", '#', Blocks.redstone_torch, 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.redstone_pointer_tile, 1), "S", "T", 'S', "stone", 'T', BPOredictNames.REDSTONE_CATHODE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.silicon_chip_tile, 1), " # ", "WWW", '#', BPItems.blue_doped_wafer, 'W', BPOredictNames.STONE_TILE));
    // GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.plate_assembly, 1), " # ", "SRS", "#C#", '#', BPOredictNames.STONE_TILE,
    // 'S',
    // "stickWood", 'R', BPItems.red_alloy_ingot, 'C', BPItems.stone_cathode)));
    GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BPItems.tainted_silicon_chip_tile, 1), BPOredictNames.SILICON_CHIP, Items.glowstone_dust));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.quartz_resonator_tile, 3), " # ", "###", "WWW", '#', "gemQuartz", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPItems.stone_bundle, 1), "#", "W", '#', "wireBundled", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BPItems.infused_teslatite_dust, 1), BPOredictNames.DUST_TESLATITE, Items.redstone));
    {
        for (RedwireType t : RedwireType.values()) {
            int i = 0;
            for (MinecraftColor c : MinecraftColor.WIRE_COLORS) {
                ItemStack stack = PartManager.getPartInfo("wire." + t.getName() + (c == MinecraftColor.NONE ? "" : "." + c.name().toLowerCase())).getStack(12);
                ItemStack freestanding = PartManager.getPartInfo("wire.freestanding." + t.getName() + (c == MinecraftColor.NONE ? "" : "." + c.name().toLowerCase())).getStack(1);
                if (c == MinecraftColor.NONE) {
                    GameRegistry.addRecipe(new ShapedOreRecipe(stack.copy(), "iii", 'i', t.getIngotOredictName()));
                    GameRegistry.addRecipe(new ShapedOreRecipe(stack.copy(), "i", "i", "i", 'i', t.getIngotOredictName()));
                } else {
                    GameRegistry.addRecipe(new ShapedOreRecipe(stack.copy(), "www", "iii", "www", 'i', t.getIngotOredictName(), 'w', new ItemStack(Blocks.wool, 1, i)));
                    GameRegistry.addRecipe(new ShapedOreRecipe(stack.copy(), "wiw", "wiw", "wiw", 'i', t.getIngotOredictName(), 'w', new ItemStack(Blocks.wool, 1, i)));
                }
                GameRegistry.addRecipe(new ShapedOreRecipe(freestanding, " s ", "sws", " s ", 's', "stickWood", 'w', stack.copy()));
                i++;
            }
        }
    }
    for (RedwireType t : RedwireType.values()) {
        ItemStack bundled = PartManager.getPartInfo("wire." + t.getName() + ".bundled").getStack(1);
        ItemStack freestanding = PartManager.getPartInfo("wire.freestanding." + t.getName() + ".bundled").getStack(1);
        GameRegistry.addRecipe(new ShapedOreRecipe(bundled, "sws", "www", "sws", 'w', t.getName() + "Insulated", 's', Items.string));
        GameRegistry.addRecipe(new ShapedOreRecipe(freestanding, " s ", "sws", " s ", 's', "stickWood", 'w', bundled.copy()));
        for (MinecraftColor c : MinecraftColor.VALID_COLORS) {
            ItemStack stack = PartManager.getPartInfo("wire." + t.getName() + ".bundled" + (c == MinecraftColor.NONE ? "" : "." + c.name().toLowerCase())).getStack(8);
            GameRegistry.addRecipe(new ShapedOreRecipe(stack, "www", "wdw", "www", 'w', bundled, 'd', "dye" + StringUtils.capitalize(ItemDye.field_150923_a[15 - c.ordinal()])));
        }
    }
    // Blocks
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPBlocks.circuit_table), "WIW", "WCW", "WPW", 'W', "plankWood", 'I', PartManager.getPartInfo("integratedCircuit3x3").getStack(), 'C', Blocks.chest, 'P', BPBlocks.project_table));
    // Gates and Circuits
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("and").getStack(), "ACA", "CCC", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("buffer").getStack(), "ACA", "WCW", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    // craftManager.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("bustransceiver"), "BBB", "N#N", "BBB", '#', BPOredictNames.STONE_TILE,
    // 'B',
    // BPItems.stone_bundle, 'N', BPItems.red_doped_wafer));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("counter").getStack(), "#W#", "CPC", "#W#", '#', BPOredictNames.STONE_TILE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE, 'P', BPOredictNames.BLUESTONE_POINTER));
    // craftManager.addRecipe(PartManager.getPartInfo("invert"), "#R#", "ROR", "#R#", '#', BPOredictNames.STONE_TILE, 'O',
    // BPItems.plate_assembly, 'R', BPItems.stone_redwire));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("lightCell").getStack(), "#W#", "#B#", "###", '#', BPOredictNames.STONE_TILE, 'B', BPItems.blue_doped_wafer, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("multiplexer").getStack(), "ACA", "C#C", "ACW", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("nand").getStack(), "AAA", "CCC", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    // craftManager.addRecipe(PartManager.getPartInfo("noninvert"), "#R#", "ROR", "#RC", '#', BPOredictNames.STONE_TILE, 'C',
    // BPItems.stone_cathode, 'O', BPItems.plate_assembly, 'R', BPItems.stone_redwire));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("nor").getStack(), "#A#", "WCW", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("not").getStack(), "#A#", "ACA", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    // craftManager.addRecipe(PartManager.getPartInfo("null"), "#R#", "RRR", "#R#", '#', BPOredictNames.STONE_TILE, 'R',
    // BPItems.stone_redwire));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("or").getStack(), "#C#", "WCW", "#W#", '#', BPOredictNames.STONE_TILE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("randomizer").getStack(), "#T#", "WWW", "TWT", '#', BPOredictNames.STONE_TILE, 'T', BPOredictNames.TAINTED_SILICON_CHIP, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("pulseformer").getStack(), "ACA", "CAC", "WW#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("repeater").getStack(), "#CW", "#AW", "#WC", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("rs").getStack(), "WWA", "C#C", "AWW", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("sequencer").getStack(), "#C#", "CPC", "#C#", '#', BPOredictNames.STONE_TILE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'P', BPOredictNames.BLUESTONE_POINTER));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("state").getStack(), "#AC", "WXP", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'P', BPOredictNames.BLUESTONE_POINTER, 'W', BPOredictNames.BLUESTONE_TILE, 'X', BPOredictNames.SILICON_CHIP));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("synchronizer").getStack(), "WCW", "XAX", "WWW", 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE, 'X', BPOredictNames.SILICON_CHIP));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("timer").getStack(), "#W#", "WPW", "ACA", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE, 'P', BPOredictNames.BLUESTONE_POINTER));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("toggle").getStack(), "C##", "WLW", "C##", '#', BPOredictNames.STONE_TILE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE, 'L', Blocks.lever));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("transparent").getStack(), "ACW", "CCC", "CW#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("xnor").getStack(), "ACA", "CAC", "WCW", 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("xor").getStack(), "AWA", "CAC", "WCW", 'A', BPOredictNames.BLUESTONE_ANODE, 'C', BPOredictNames.BLUESTONE_CATHODE, 'W', BPOredictNames.BLUESTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("comparator").getStack(), "TCT", "WRW", "CAC", 'A', BPOredictNames.REDSTONE_ANODE, 'C', BPOredictNames.REDSTONE_CATHODE, 'W', BPOredictNames.REDSTONE_TILE, 'T', BPOredictNames.STONE_TILE, 'R', BPOredictNames.QUARTZ_RESONATOR));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("inverter").getStack(), "#A#", "ACA", "#W#", '#', BPOredictNames.STONE_TILE, 'A', BPOredictNames.REDSTONE_ANODE, 'C', BPOredictNames.REDSTONE_CATHODE, 'W', BPOredictNames.REDSTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("regulabletorch").getStack(), "#W#", "#P#", "###", '#', BPOredictNames.STONE_TILE, 'P', BPOredictNames.REDSTONE_POINTER, 'W', BPOredictNames.REDSTONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(GateNullCell.getStackWithData(new GateNullCell()), "SSS", "S S", "WWW", 'S', "stickWood", 'W', BPOredictNames.STONE_TILE));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("integratedCircuit3x3").getStack(), "TST", "SSS", "TST", 'T', BPOredictNames.STONE_TILE, 'S', BPOredictNames.SILICON_CHIP));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("integratedCircuit5x5").getStack(), "II", "II", 'I', PartManager.getPartInfo("integratedCircuit3x3").getStack()));
    GameRegistry.addRecipe(new ShapedOreRecipe(PartManager.getPartInfo("integratedCircuit7x7").getStack(), "II", "II", 'I', PartManager.getPartInfo("integratedCircuit5x5").getStack()));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BPBlocks.circuit_database, 1), "#C#", "BTB", "###", '#', "ingotIron", 'C', PartManager.getPartInfo("integratedCircuit7x7").getStack(), 'B', Blocks.bookshelf, 'T', BPBlocks.circuit_table));
    // Custom crafting for nullcells
    GameRegistry.addRecipe(RecipeNullCell.instance);
}
Also used : RedwireType(com.bluepowermod.api.wire.redstone.RedwireType) MinecraftColor(com.bluepowermod.api.misc.MinecraftColor) GateNullCell(com.bluepowermod.part.gate.supported.GateNullCell) ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ShapelessOreRecipe(net.minecraftforge.oredict.ShapelessOreRecipe) ItemStack(net.minecraft.item.ItemStack)

Example 5 with MinecraftColor

use of com.bluepowermod.api.misc.MinecraftColor in project BluePower by Qmunity.

the class BundledPropagator method propagate.

@Override
public void propagate() {
    if ((device instanceof IPart && ((IPart) device).getParent() == null) || device.getWorld() == null)
        return;
    for (MinecraftColor c : MinecraftColor.VALID_COLORS) {
        IRedstoneDevice dev;
        if (device instanceof IInsulatedRedwire) {
            dev = (IRedstoneDevice) device;
        } else {
            dev = BundledDeviceWrapper.wrap(device, c);
        }
        if (dev == null)
            continue;
        RedstoneApi.getInstance().getRedstonePropagator(dev, side).propagate();
    }
}
Also used : MinecraftColor(com.bluepowermod.api.misc.MinecraftColor) IInsulatedRedwire(com.bluepowermod.api.wire.redstone.IRedwire.IInsulatedRedwire) IPart(uk.co.qmunity.lib.part.IPart) IRedstoneDevice(com.bluepowermod.api.wire.redstone.IRedstoneDevice)

Aggregations

MinecraftColor (com.bluepowermod.api.misc.MinecraftColor)5 RedwireType (com.bluepowermod.api.wire.redstone.RedwireType)3 ItemStack (net.minecraft.item.ItemStack)2 IRedstoneDevice (com.bluepowermod.api.wire.redstone.IRedstoneDevice)1 IInsulatedRedwire (com.bluepowermod.api.wire.redstone.IRedwire.IInsulatedRedwire)1 GateNullCell (com.bluepowermod.part.gate.supported.GateNullCell)1 PartRedwireFaceBundled (com.bluepowermod.part.wire.redstone.PartRedwireFace.PartRedwireFaceBundled)1 PartRedwireFaceInsulated (com.bluepowermod.part.wire.redstone.PartRedwireFace.PartRedwireFaceInsulated)1 PartRedwireFreestandingBundled (com.bluepowermod.part.wire.redstone.PartRedwireFreestanding.PartRedwireFreestandingBundled)1 PartRedwireFreestandingInsulated (com.bluepowermod.part.wire.redstone.PartRedwireFreestanding.PartRedwireFreestandingInsulated)1 Block (net.minecraft.block.Block)1 ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)1 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)1 IPart (uk.co.qmunity.lib.part.IPart)1