Search in sources :

Example 1 with EnumDyeColor

use of net.minecraft.item.EnumDyeColor in project BetterWithAddons by DaedalusGame.

the class InteractionDecoAddon method init.

@Override
public void init() {
    MillManager.getInstance().addRecipe(0, ModItems.materialDeco.getMaterial("hemp_oil"), new Object[] { new ItemStack(BWMBlocks.HEMP, 1), new ItemStack(Items.GLASS_BOTTLE, 1) });
    CauldronManager.getInstance().addRecipe(ModItems.materialDeco.getMaterial("wood_bleach", 4), new Object[] { ModItems.materialDeco.getMaterial("hemp_oil", 4), new ItemStack(Items.DYE, 1, EnumDyeColor.WHITE.getDyeDamage()) });
    CauldronManager.getInstance().addRecipe(ModItems.materialDeco.getMaterial("wood_stain", 4), new Object[] { ModItems.materialDeco.getMaterial("hemp_oil", 4), new ItemStack(Items.DYE, 1, EnumDyeColor.BLACK.getDyeDamage()) });
    GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.paperWall), "pwp", "ppp", "pwp", 'p', new ItemStack(Items.PAPER), 'w', new ItemStack(BWMBlocks.WOOD_MOULDING, 1, OreDictionary.WILDCARD_VALUE));
    //TODO: candles
    ItemStack chandelierLight = new ItemStack(Blocks.TORCH);
    ItemStack ironLanternLight = ModItems.materialDeco.getMaterial("hemp_oil");
    //TODO: fireflies, candles
    ItemStack woodLanternLight = ModItems.materialDeco.getMaterial("hemp_oil");
    GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.paperLantern), "pwp", "wtw", "pwp", 'p', new ItemStack(Items.PAPER), 'w', new ItemStack(BWMBlocks.WOOD_MOULDING, 1, OreDictionary.WILDCARD_VALUE), 't', woodLanternLight);
    GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.wroughtLantern), " w ", "wtw", " w ", 'w', new ItemStack(ModBlocks.wroughtBars), 't', ironLanternLight);
    if (ALTERNATE_WROUGHT_BARS)
        SteelCraftingManager.getInstance().addSteelShapedOreRecipe(new ItemStack(ModBlocks.wroughtBars, 8), "bbbb", "bbbb", 'b', new ItemStack(Blocks.IRON_BARS));
    else
        SteelCraftingManager.getInstance().addSteelShapedOreRecipe(new ItemStack(ModBlocks.wroughtBars, 10), "b b ", "bbbb", "b b ", "b b ", 'b', new ItemStack(Items.IRON_INGOT));
    //GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.chandelier)," b ","tbt","tbt",'b',new ItemStack(Items.GOLD_NUGGET),'t',chandelierLight);
    SteelCraftingManager.getInstance().addSteelShapedOreRecipe(new ItemStack(ModBlocks.chandelier), " ss ", " bb ", "tbbt", "tbbt", 's', new ItemStack(Blocks.STONE), 'b', new ItemStack(Items.GOLD_NUGGET), 't', chandelierLight);
    ItemStack whiteBrick = new ItemStack(ModBlocks.whiteBrick, 1, BlockWhiteBrick.EnumType.DEFAULT.getMetadata());
    ItemStack whiteBrick_mossy = new ItemStack(ModBlocks.whiteBrick, 1, BlockWhiteBrick.EnumType.MOSSY.getMetadata());
    ItemStack whiteBrick_cracked = new ItemStack(ModBlocks.whiteBrick, 1, BlockWhiteBrick.EnumType.CRACKED.getMetadata());
    GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.whiteBrick, 4, BlockWhiteBrick.EnumType.DEFAULT.getMetadata()), "bb", "bb", 'b', new ItemStack(BWMBlocks.AESTHETIC, 1, BlockAesthetic.EnumType.WHITESTONE.getMeta()));
    if (CHISEL_BRICKS_IN_ANVIL) {
        BetterWithAddons.removeCraftingRecipe(new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.EnumType.CHISELED.getMetadata()));
        SteelCraftingManager.getInstance().addSteelShapedOreRecipe(new ItemStack(Blocks.STONEBRICK, 3, BlockStoneBrick.EnumType.CHISELED.getMetadata()), "bbbb", "b  b", "b  b", "bbbb", 'b', new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.EnumType.DEFAULT.getMetadata()));
        SteelCraftingManager.getInstance().addSteelShapedOreRecipe(new ItemStack(ModBlocks.whiteBrick, 3, BlockWhiteBrick.EnumType.CHISELED.getMetadata()), "bbbb", "b  b", "b  b", "bbbb", 'b', new ItemStack(ModBlocks.whiteBrick, 1, BlockWhiteBrick.EnumType.DEFAULT.getMetadata()));
    } else {
        GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.whiteBrick, 2, BlockWhiteBrick.EnumType.CHISELED.getMetadata()), "b", "b", 'b', new ItemStack(ModBlocks.whiteBrick, 1, BlockWhiteBrick.EnumType.DEFAULT.getMetadata()));
    }
    FurnaceRecipes.instance().addSmeltingRecipe(whiteBrick, whiteBrick_cracked, 0.1f);
    GameRegistry.addShapelessRecipe(whiteBrick_mossy, whiteBrick, new ItemStack(Blocks.VINE, 1));
    StokedCrucibleManager.getInstance().addRecipe(new ItemStack(ModBlocks.pavement), new ItemStack[] { new ItemStack(Blocks.GRAVEL), ItemMaterial.getMaterial(ItemMaterial.EnumMaterial.NETHER_SLUDGE) });
    int glasspanein = GLASS_PANE_REBALANCE ? 2 : 8;
    int glassout = GLASS_PANE_REBALANCE ? 1 : 3;
    if (GLASS_PANE_REBALANCE) {
        modifyPaneRecipe();
        StokedCrucibleManager.getInstance().removeRecipe(new ItemStack(Blocks.GLASS, 3), ItemStack.EMPTY, new ItemStack(Blocks.GLASS_PANE, 8));
    }
    StokedCrucibleManager.getInstance().addRecipe(ModItems.materialDeco.getMaterial("glass_chunk"), new ItemStack[] { new ItemStack(BWMItems.SAND_PILE, 1) });
    StokedCrucibleManager.getInstance().addRecipe(new ItemStack(Blocks.GLASS, 1), new ItemStack[] { ModItems.materialDeco.getMaterial("glass_chunk", 4) });
    if (GLASS_FURNACE) {
        GameRegistry.addSmelting(new ItemStack(BWMItems.SAND_PILE, 1), ModItems.materialDeco.getMaterial("glass_chunk"), 0.02f);
        GameRegistry.addSmelting(ModItems.materialDeco.getMaterial("glass_chunk", 4), new ItemStack(Blocks.GLASS, 1), 0.05f);
    }
    GameRegistry.addShapelessRecipe(ModItems.materialDeco.getMaterial("glass_chunk", 4), new ItemStack(Blocks.GLASS, 1));
    if (CHEAPER_BOTTLES) {
        BetterWithAddons.removeCraftingRecipe(new ItemStack(Items.GLASS_BOTTLE, 3));
        GameRegistry.addShapedRecipe(new ItemStack(Items.GLASS_BOTTLE, 3), " # ", "# #", "###", '#', ModItems.materialDeco.getMaterial("glass_chunk", 1));
    }
    if (RECYCLE_BOTTLES)
        StokedCrucibleManager.getInstance().addRecipe(ModItems.materialDeco.getMaterial("glass_chunk", CHEAPER_BOTTLES ? 2 : 4), new ItemStack[] { new ItemStack(Items.GLASS_BOTTLE, 1) });
    StokedCrucibleManager.getInstance().addRecipe(new ItemStack(Blocks.GLASS, glassout), new ItemStack[] { new ItemStack(Blocks.GLASS_PANE, glasspanein) });
    EnumDyeColor[] dyes = EnumDyeColor.values();
    int len = dyes.length;
    for (int i = 0; i < len; ++i) {
        EnumDyeColor dye = dyes[i];
        ItemStack glass = new ItemStack(Blocks.STAINED_GLASS, glassout, dye.getMetadata());
        ItemStack glasspane = new ItemStack(Blocks.STAINED_GLASS_PANE, glasspanein, dye.getMetadata());
        StokedCrucibleManager.getInstance().addRecipe(glass, new ItemStack[] { glasspane });
    }
    if (WOOD_COLORING) {
        ItemStack birch = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.BIRCH.getMetadata());
        ItemStack oak = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.OAK.getMetadata());
        ItemStack jungle_wood = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.JUNGLE.getMetadata());
        ItemStack acacia = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.ACACIA.getMetadata());
        ItemStack spruce = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.SPRUCE.getMetadata());
        ItemStack darkoak = new ItemStack(Blocks.PLANKS, 1, BlockPlanks.EnumType.DARK_OAK.getMetadata());
        addStainingRecipe(birch, oak);
        addStainingRecipe(oak, jungle_wood);
        addStainingRecipe(jungle_wood, acacia);
        addStainingRecipe(acacia, spruce);
        addStainingRecipe(spruce, darkoak);
    }
}
Also used : ItemStack(net.minecraft.item.ItemStack) EnumDyeColor(net.minecraft.item.EnumDyeColor)

Example 2 with EnumDyeColor

use of net.minecraft.item.EnumDyeColor in project BetterWithAddons by DaedalusGame.

the class BlockColoredBrick method getVariantModels.

@Override
public List<ModelResourceLocation> getVariantModels() {
    ArrayList<ModelResourceLocation> rlist = new ArrayList<ModelResourceLocation>();
    EnumDyeColor[] dyes = EnumDyeColor.values();
    int len = dyes.length;
    for (int i = 0; i < len; ++i) {
        EnumDyeColor dye = dyes[i];
        rlist.add(new ModelResourceLocation(getRegistryName(), "color=" + dye.getName()));
    }
    return rlist;
}
Also used : ArrayList(java.util.ArrayList) ModelResourceLocation(net.minecraft.client.renderer.block.model.ModelResourceLocation) EnumDyeColor(net.minecraft.item.EnumDyeColor)

Example 3 with EnumDyeColor

use of net.minecraft.item.EnumDyeColor in project ImmersiveEngineering by BluSunrize.

the class TileEntityConveyorBelt method interact.

@Override
public boolean interact(EnumFacing side, EntityPlayer player, EnumHand hand, ItemStack heldItem, float hitX, float hitY, float hitZ) {
    if (conveyorBeltSubtype != null) {
        boolean update;
        if (conveyorBeltSubtype.canBeDyed() && Utils.isDye(heldItem)) {
            EnumDyeColor dye = EnumDyeColor.byDyeDamage(Utils.getDye(heldItem));
            update = dye != null && conveyorBeltSubtype.setDyeColour(dye.getMapColor().colorValue);
        } else
            update = conveyorBeltSubtype.playerInteraction(this, player, hand, heldItem, hitX, hitY, hitZ, side);
        if (update) {
            this.markDirty();
            this.markContainingBlockForUpdate(null);
            worldObj.addBlockEvent(getPos(), this.getBlockType(), 0, 0);
            return true;
        }
    }
    return false;
}
Also used : EnumDyeColor(net.minecraft.item.EnumDyeColor)

Example 4 with EnumDyeColor

use of net.minecraft.item.EnumDyeColor in project ConvenientAdditions by Necr0.

the class ModRecipes method initBlocks.

private static void initBlocks() {
    if (ModConfigMisc.platform) {
        for (EnumDyeColor c : EnumDyeColor.values()) {
            String dye = "dye" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
            String pane = "paneGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
            String block = "blockGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), "p p", " d ", "p p", 'd', dye, 'p', pane));
            ItemStack w = new ItemStack(ModBlocks.platform, 1, OreDictionary.WILDCARD_VALUE);
            GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), w, w, w, w, dye));
            GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), "b b", " d ", "b b", 'd', dye, 'b', block));
            w = new ItemStack(ModBlocks.semiSolidBlock, 1, OreDictionary.WILDCARD_VALUE);
            GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), w, w, w, w, dye));
        }
    }
    if (ModConfigMisc.powderKeg)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.powderKegBlock), "psp", "pgp", "psp", 'p', "plankWood", 's', "slabWood", 'g', "gunpowder"));
    if (ModConfigMisc.seedBox_recipe)
        GameRegistry.addRecipe(new ShapedOreRecipe(ModBlocks.seedBoxBlock, "tpt", "php", "tpt", 'h', Blocks.HOPPER, 'p', "plankWood", 't', "ingotIron"));
    if (ModConfigMisc.displayCase)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.displayCase, 2), "ppp", "p p", "sss", 's', "slabWood", 'p', "paneGlassColorless"));
    if (ModConfigBuildingBlocks.ironGolemBlock)
        GameRegistry.addRecipe(new ShapedNBTOreRecipe(new ItemStack(ModBlocks.ironGolemBlock, 32), "iii", "isi", "iii", 'i', "blockIron", 's', ModItems.itemSoulGem.setEntityId(new ItemStack(ModItems.itemSoulGem), "minecraft:villager_golem")));
    if (ModConfigMisc.enderProofBlock)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofBlock, 6), "oio", "iwi", "oio", 'o', "obsidian", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
    if (ModConfigMisc.enderProofGlass)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofGlass, 6), "gig", "iwi", "gig", 'g', "blockGlass", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
    if (ModConfigMisc.workStation)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.workStation), "sss", "pwp", "pcp", 's', "cobblestone", 'p', "plankWood", 'c', "chestWood", 'w', "workbench"));
    if (ModConfigMisc.punjiSticks)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.punjiSticks), "ss", "cc", 's', ModItems.itemSpikes, 'c', new ItemStack(Blocks.STONE_SLAB)));
    if (ModConfigMisc.storageCrate)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.storageCrate), "lll", "lcl", "lll", 'l', "logWood", 'c', "chestWood"));
    if (ModConfigBuildingBlocks.woodenTile)
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.woodenTile, 8), "sps", "ppp", "sps", 's', "stickWood", 'p', "plankWood"));
}
Also used : ShapedNBTOreRecipe(convenientadditions.api.recipe.ShapedNBTOreRecipe) ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ShapelessOreRecipe(net.minecraftforge.oredict.ShapelessOreRecipe) ItemStack(net.minecraft.item.ItemStack) EnumDyeColor(net.minecraft.item.EnumDyeColor)

Example 5 with EnumDyeColor

use of net.minecraft.item.EnumDyeColor in project BetterWithAddons by DaedalusGame.

the class InteractionBWM method init.

@Override
public void init() {
    if (!isActive())
        return;
    BlockBUD.addBlacklistBlock(ModBlocks.pcbwire);
    ItemStack arrowhead = ModItems.material.getMaterial("arrowhead");
    ItemStack haft = ItemMaterial.getMaterial(ItemMaterial.EnumMaterial.HAFT);
    ItemStack string = new ItemStack(BWMBlocks.ROPE);
    ItemStack feather = new ItemStack(Items.FEATHER);
    String oreIronIngot = "ingotIron";
    GameRegistry.addRecipe(new ShapedOreRecipe(ModItems.material.getMaterial("arrowhead"), " o ", "ooo", "o o", 'o', "nuggetSoulforgedSteel"));
    GameRegistry.addShapedRecipe(new ItemStack(ModItems.greatarrow, 1), "a", "b", "c", 'a', arrowhead, 'b', haft, 'c', feather);
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.greatbow, 1), " bc", "b c", " bc", 'b', haft, 'c', string));
    StokedCauldronManager.getInstance().addRecipe(new ItemStack(ModBlocks.pcbblock), ItemStack.EMPTY, new Object[] { new ItemStack(Items.FERMENTED_SPIDER_EYE), new ItemStack(Blocks.STONEBRICK), "dustPotash" });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedBeetroot), ItemStack.EMPTY, new Object[] { new ItemStack(Items.BEETROOT) });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedCarrot), ItemStack.EMPTY, new Object[] { new ItemStack(Items.CARROT) });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedPotato), ItemStack.EMPTY, new Object[] { new ItemStack(Items.POTATO) });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedEgg), ItemStack.EMPTY, new Object[] { new ItemStack(Items.EGG) });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedClownfish), ItemStack.EMPTY, new Object[] { new ItemStack(Items.FISH, 1, ItemFishFood.FishType.CLOWNFISH.getMetadata()) });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.cookedPuffer), ItemStack.EMPTY, new Object[] { new ItemStack(Items.FISH, 1, ItemFishFood.FishType.PUFFERFISH.getMetadata()) });
    CauldronManager.getInstance().addRecipe(ModItems.material.getMaterial("bone_ingot"), ItemStack.EMPTY, new Object[] { new ItemStack(Items.BONE, 2), new ItemStack(Items.DYE, 8, 15) });
    CauldronManager.getInstance().addRecipe(ModItems.material.getMaterial("midori_popped"), ItemStack.EMPTY, new Object[] { ModItems.material.getMaterial("midori") });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModItems.meatballs), ItemStack.EMPTY, new Object[] { new ItemStack(ModItems.groundMeat, 3) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.groundMeat, 3), ItemStack.EMPTY, new Object[] { new ItemStack(Items.BEEF) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.groundMeat, 2), ItemStack.EMPTY, new Object[] { new ItemStack(Items.MUTTON) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.groundMeat, 1), ItemStack.EMPTY, new Object[] { new ItemStack(Items.CHICKEN) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.groundMeat, 3), ItemStack.EMPTY, new Object[] { new ItemStack(Items.PORKCHOP) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.groundMeat, 1), ItemStack.EMPTY, new Object[] { new ItemStack(Items.RABBIT) });
    MillManager.getInstance().addRecipe(0, new ItemStack(ModBlocks.worldScale, 1), ItemStack.EMPTY, new Object[] { new ItemStack(ModBlocks.worldScaleOre, 1, 1) });
    //Bark
    ModBlocks.mulberryLog.barkStack = ModItems.materialJapan.getMaterial("bark_mulberry");
    ModBlocks.sakuraLog.barkStack = ModItems.materialJapan.getMaterial("bark_sakura");
    //Thorn Vines
    ItemStack rosebush = new ItemStack(Blocks.DOUBLE_PLANT, 4, BlockDoublePlant.EnumPlantType.ROSE.getMeta());
    ItemStack thornrose = ModItems.material.getMaterial("thornrose", 2);
    ItemStack soulurn = new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta());
    ItemStack cactus = new ItemStack(Blocks.CACTUS, 1);
    ItemStack dung = ItemMaterial.getMaterial(ItemMaterial.EnumMaterial.DUNG, 1);
    CauldronManager.getInstance().addRecipe(new ItemStack(ModBlocks.thornrose), ItemStack.EMPTY, new Object[] { cactus, rosebush, dung, soulurn });
    CauldronManager.getInstance().addRecipe(new ItemStack(ModBlocks.thornrose), ItemStack.EMPTY, new Object[] { cactus, thornrose, dung, soulurn });
    //Alicio Sapling
    ItemStack wheat = new ItemStack(Items.WHEAT, 16);
    ItemStack flesh = new ItemStack(Items.ROTTEN_FLESH, 4);
    ItemStack red = new ItemStack(Items.DYE, 8, EnumDyeColor.RED.getDyeDamage());
    ItemStack tree = new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.BIRCH.getMetadata());
    CauldronManager.getInstance().addRecipe(new ItemStack(ModBlocks.luretreeSapling), ItemStack.EMPTY, new Object[] { tree, wheat, red, flesh });
    GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.chute, 1), "s s", " p ", "mgm", 's', new ItemStack(BWMBlocks.WOOD_SIDING), 'm', new ItemStack(BWMBlocks.WOOD_MOULDING), 'g', ItemMaterial.getMaterial(ItemMaterial.EnumMaterial.GEAR), 'p', new ItemStack(Blocks.WOODEN_PRESSURE_PLATE));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 0), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.OAK.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 1), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.BIRCH.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 2), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.SPRUCE.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 3), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.JUNGLE.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 4), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.ACACIA.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.ecksieSapling, 1, 5), new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.DARK_OAK.getMetadata()), new ItemStack(BWMBlocks.URN, 1, BlockUrn.EnumUrnType.FULL.getMeta()));
    if (MILL_CLAY) {
        MillManager.getInstance().addRecipe(0, new ItemStack(Items.BRICK, 4), ItemStack.EMPTY, new Object[] { new ItemStack(Blocks.HARDENED_CLAY, 1) });
        EnumDyeColor[] dyes = EnumDyeColor.values();
        int len = dyes.length;
        for (int i = 0; i < len; ++i) {
            EnumDyeColor dye = dyes[i];
            ItemStack brick = new ItemStack(ModItems.stainedBrick, 1, dye.getMetadata());
            MillManager.getInstance().addRecipe(0, new ItemStack(ModItems.stainedBrick, 4, dye.getMetadata()), ItemStack.EMPTY, new Object[] { new ItemStack(Blocks.STAINED_HARDENED_CLAY, 1, dye.getMetadata()) });
            GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.coloredBrick, 1, dye.getMetadata()), "bb", "bb", 'b', brick);
        }
    }
    if (CHORUS_IN_CAULDRON)
        BetterWithAddons.instance.removeSmeltingRecipe(new ItemStack(Items.CHORUS_FRUIT_POPPED));
    else
        GameRegistry.addSmelting(ModItems.material.getMaterial("midori"), ModItems.material.getMaterial("midori_popped"), 0.1f);
    fixRecipes();
}
Also used : ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ItemStack(net.minecraft.item.ItemStack) EnumDyeColor(net.minecraft.item.EnumDyeColor)

Aggregations

EnumDyeColor (net.minecraft.item.EnumDyeColor)6 ItemStack (net.minecraft.item.ItemStack)3 ArrayList (java.util.ArrayList)2 ModelResourceLocation (net.minecraft.client.renderer.block.model.ModelResourceLocation)2 ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)2 ShapedNBTOreRecipe (convenientadditions.api.recipe.ShapedNBTOreRecipe)1 ShapelessOreRecipe (net.minecraftforge.oredict.ShapelessOreRecipe)1