Advertisement
robin4002

Untitled

Jun 30th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 26.04 KB | None | 0 0
  1. package com.eloraam.redpower;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.creativetab.CreativeTabs;
  5. import net.minecraft.item.Item;
  6. import net.minecraft.item.ItemStack;
  7. import net.minecraft.item.crafting.CraftingManager;
  8. import net.minecraft.stats.AchievementList;
  9. import net.minecraftforge.common.AchievementPage;
  10. import net.minecraftforge.oredict.OreDictionary;
  11.  
  12. import com.eloraam.redpower.base.BaseProxy;
  13. import com.eloraam.redpower.base.BlockAppliance;
  14. import com.eloraam.redpower.base.BlockMicro;
  15. import com.eloraam.redpower.base.ItemBag;
  16. import com.eloraam.redpower.base.ItemDrawplate;
  17. import com.eloraam.redpower.base.ItemDyeIndigo;
  18. import com.eloraam.redpower.base.ItemHandsaw;
  19. import com.eloraam.redpower.base.ItemMicro;
  20. import com.eloraam.redpower.base.ItemPlan;
  21. import com.eloraam.redpower.base.ItemScrewdriver;
  22. import com.eloraam.redpower.base.RecipeBag;
  23. import com.eloraam.redpower.base.TileAdvBench;
  24. import com.eloraam.redpower.base.TileAlloyFurnace;
  25. import com.eloraam.redpower.core.AchieveLib;
  26. import com.eloraam.redpower.core.BlockMultiblock;
  27. import com.eloraam.redpower.core.Config;
  28. import com.eloraam.redpower.core.CoreLib;
  29. import com.eloraam.redpower.core.CoverLib;
  30. import com.eloraam.redpower.core.CraftLib;
  31. import com.eloraam.redpower.core.ItemExtended;
  32. import com.eloraam.redpower.core.ItemParts;
  33. import com.eloraam.redpower.core.ItemTextured;
  34. import com.eloraam.redpower.core.OreStack;
  35. import com.eloraam.redpower.core.PipeLib;
  36. import com.eloraam.redpower.core.TileCovered;
  37. import com.eloraam.redpower.core.TileMultiblock;
  38.  
  39. import cpw.mods.fml.common.Mod;
  40. import cpw.mods.fml.common.Mod.Init;
  41. import cpw.mods.fml.common.Mod.Instance;
  42. import cpw.mods.fml.common.Mod.PostInit;
  43. import cpw.mods.fml.common.Mod.PreInit;
  44. import cpw.mods.fml.common.SidedProxy;
  45. import cpw.mods.fml.common.event.FMLInitializationEvent;
  46. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  47. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  48. import cpw.mods.fml.common.network.NetworkMod;
  49. import cpw.mods.fml.common.network.NetworkRegistry;
  50. import cpw.mods.fml.common.registry.GameRegistry;
  51.  
  52. @Mod(modid = "RedPowerBase",name = "RedPower Base",version = "2.0pr6",certificateFingerprint = "28f7f8a775e597088f3a418ea29290b6a1d23c7b", dependencies = "required-after:RedPowerCore")
  53. @NetworkMod(clientSideRequired = true,serverSideRequired = false)
  54.  
  55. public class RedPowerBase
  56. {
  57.     @Instance("RedPowerBase")
  58.     public static RedPowerBase instance;
  59.     @SidedProxy(
  60.             clientSide = "com.eloraam.redpower.base.BaseProxyClient",
  61.             serverSide = "com.eloraam.redpower.base.BaseProxy"
  62.     )
  63.     public static BaseProxy proxy;
  64.     public static BlockAppliance blockAppliance;
  65.     public static Item itemHandsawIron;
  66.     public static Item itemHandsawDiamond;
  67.     public static ItemParts itemLumar;
  68.     public static ItemParts itemResource;
  69.     public static ItemStack itemRuby;
  70.     public static ItemStack itemGreenSapphire;
  71.     public static ItemStack itemSapphire;
  72.     public static ItemStack itemIngotSilver;
  73.     public static ItemStack itemIngotTin;
  74.     public static ItemStack itemIngotCopper;
  75.     public static ItemStack itemNikolite;
  76.     public static ItemParts itemAlloy;
  77.     public static ItemStack itemIngotRed;
  78.     public static ItemStack itemIngotBlue;
  79.     public static ItemStack itemIngotBrass;
  80.     public static ItemStack itemBouleSilicon;
  81.     public static ItemStack itemWaferSilicon;
  82.     public static ItemStack itemWaferBlue;
  83.     public static ItemStack itemWaferRed;
  84.     public static ItemStack itemTinplate;
  85.     public static ItemStack itemFineCopper;
  86.     public static ItemStack itemFineIron;
  87.     public static ItemStack itemCopperCoil;
  88.     public static ItemStack itemMotor;
  89.     public static ItemStack itemCanvas;
  90.     public static ItemParts itemNugget;
  91.     public static ItemStack itemNuggetIron;
  92.     public static ItemStack itemNuggetSilver;
  93.     public static ItemStack itemNuggetTin;
  94.     public static ItemStack itemNuggetCopper;
  95.     public static Item itemDyeIndigo;
  96.     public static BlockMicro blockMicro;
  97.     public static BlockMultiblock blockMultiblock;
  98.     public static ItemScrewdriver itemScrewdriver;
  99.     public static Item itemDrawplateDiamond;
  100.     public static Item itemPlanBlank;
  101.     public static Item itemPlanFull;
  102.     public static Item itemBag;
  103.  
  104.     @PreInit
  105.     public void preInit(FMLPreInitializationEvent var1) {}
  106.  
  107.     @Init
  108.     public void load(FMLInitializationEvent var1)
  109.     {
  110.         initBaseItems();
  111.         initAlloys();
  112.         initIndigo();
  113.         initMicroblocks();
  114.         initCoverMaterials();
  115.         initFluids();
  116.         initBlocks();
  117.         initAchievements();
  118.         CraftingManager.getInstance().getRecipeList().add(new RecipeBag());
  119.         proxy.registerRenderers();
  120.         NetworkRegistry.instance().registerGuiHandler(instance, proxy);
  121.     }
  122.  
  123.     @PostInit
  124.     public void postInit(FMLPostInitializationEvent var1) {}
  125.  
  126.     public static void initBaseItems()
  127.     {
  128.         itemLumar = new ItemParts(Config.getItemID("items.base.lumar.id"), "/eloraam/base/items1.png");
  129.         itemLumar.setCreativeTab(CreativeTabs.tabMaterials);
  130.         int var0;
  131.  
  132.         for (var0 = 0; var0 < 16; ++var0)
  133.         {
  134.             itemLumar.addItem(var0, 32 + var0, "item.rplumar." + CoreLib.rawColorNames[var0]);
  135.             Config.addName("item.rplumar." + CoreLib.rawColorNames[var0] + ".name", CoreLib.enColorNames[var0] + " Lumar");
  136.             ItemStack var1 = new ItemStack(Item.dyePowder, 1, 15 - var0);
  137.             GameRegistry.addShapelessRecipe(new ItemStack(itemLumar, 2, var0), new Object[] {Item.redstone, var1, var1, Item.lightStoneDust});
  138.         }
  139.  
  140.         itemResource = new ItemParts(Config.getItemID("items.base.resource.id"), "/eloraam/base/items1.png");
  141.         itemAlloy = new ItemParts(Config.getItemID("items.base.alloy.id"), "/eloraam/base/items1.png");
  142.         itemResource.setCreativeTab(CreativeTabs.tabMaterials);
  143.         itemAlloy.setCreativeTab(CreativeTabs.tabMaterials);
  144.         itemResource.addItem(0, 48, "item.ruby");
  145.         itemResource.addItem(1, 49, "item.greenSapphire");
  146.         itemResource.addItem(2, 50, "item.sapphire");
  147.         itemResource.addItem(3, 51, "item.ingotSilver");
  148.         itemResource.addItem(4, 52, "item.ingotTin");
  149.         itemResource.addItem(5, 53, "item.ingotCopper");
  150.         itemResource.addItem(6, 54, "item.nikolite");
  151.         itemAlloy.addItem(0, 64, "item.ingotRed");
  152.         itemAlloy.addItem(1, 65, "item.ingotBlue");
  153.         itemAlloy.addItem(2, 66, "item.ingotBrass");
  154.         itemAlloy.addItem(3, 67, "item.bouleSilicon");
  155.         itemAlloy.addItem(4, 68, "item.waferSilicon");
  156.         itemAlloy.addItem(5, 69, "item.waferBlue");
  157.         itemAlloy.addItem(6, 70, "item.waferRed");
  158.         itemAlloy.addItem(7, 71, "item.tinplate");
  159.         itemAlloy.addItem(8, 72, "item.finecopper");
  160.         itemAlloy.addItem(9, 73, "item.fineiron");
  161.         itemAlloy.addItem(10, 74, "item.coppercoil");
  162.         itemAlloy.addItem(11, 75, "item.btmotor");
  163.         itemAlloy.addItem(12, 76, "item.rpcanvas");
  164.         itemRuby = new ItemStack(itemResource, 1, 0);
  165.         itemGreenSapphire = new ItemStack(itemResource, 1, 1);
  166.         itemSapphire = new ItemStack(itemResource, 1, 2);
  167.         itemIngotSilver = new ItemStack(itemResource, 1, 3);
  168.         itemIngotTin = new ItemStack(itemResource, 1, 4);
  169.         itemIngotCopper = new ItemStack(itemResource, 1, 5);
  170.         itemNikolite = new ItemStack(itemResource, 1, 6);
  171.         itemIngotRed = new ItemStack(itemAlloy, 1, 0);
  172.         itemIngotBlue = new ItemStack(itemAlloy, 1, 1);
  173.         itemIngotBrass = new ItemStack(itemAlloy, 1, 2);
  174.         itemBouleSilicon = new ItemStack(itemAlloy, 1, 3);
  175.         itemWaferSilicon = new ItemStack(itemAlloy, 1, 4);
  176.         itemWaferBlue = new ItemStack(itemAlloy, 1, 5);
  177.         itemWaferRed = new ItemStack(itemAlloy, 1, 6);
  178.         itemTinplate = new ItemStack(itemAlloy, 1, 7);
  179.         itemFineCopper = new ItemStack(itemAlloy, 1, 8);
  180.         itemFineIron = new ItemStack(itemAlloy, 1, 9);
  181.         itemCopperCoil = new ItemStack(itemAlloy, 1, 10);
  182.         itemMotor = new ItemStack(itemAlloy, 1, 11);
  183.         itemCanvas = new ItemStack(itemAlloy, 1, 12);
  184.         OreDictionary.registerOre("gemRuby", itemRuby);
  185.         OreDictionary.registerOre("gemGreenSapphire", itemGreenSapphire);
  186.         OreDictionary.registerOre("gemSapphire", itemSapphire);
  187.         OreDictionary.registerOre("ingotTin", itemIngotTin);
  188.         OreDictionary.registerOre("ingotCopper", itemIngotCopper);
  189.         OreDictionary.registerOre("ingotSilver", itemIngotSilver);
  190.         OreDictionary.registerOre("ingotBrass", itemIngotBrass);
  191.         OreDictionary.registerOre("dustNikolite", itemNikolite);
  192.         itemNugget = new ItemParts(Config.getItemID("items.base.nuggets.id"), "/eloraam/base/items1.png");
  193.         itemNugget.setCreativeTab(CreativeTabs.tabMaterials);
  194.         itemNugget.addItem(0, 160, "item.nuggetIron");
  195.         itemNugget.addItem(1, 161, "item.nuggetSilver");
  196.         itemNugget.addItem(2, 162, "item.nuggetTin");
  197.         itemNugget.addItem(3, 163, "item.nuggetCopper");
  198.         itemNuggetIron = new ItemStack(itemNugget, 1, 0);
  199.         itemNuggetSilver = new ItemStack(itemNugget, 1, 1);
  200.         itemNuggetTin = new ItemStack(itemNugget, 1, 2);
  201.         itemNuggetCopper = new ItemStack(itemNugget, 1, 3);
  202.         OreDictionary.registerOre("nuggetIron", itemNuggetIron);
  203.         OreDictionary.registerOre("nuggetSilver", itemNuggetSilver);
  204.         OreDictionary.registerOre("nuggetTin", itemNuggetTin);
  205.         OreDictionary.registerOre("nuggetCopper", itemNuggetCopper);
  206.         itemDrawplateDiamond = new ItemDrawplate(Config.getItemID("items.base.drawplateDiamond.id"));
  207.         itemDrawplateDiamond.setItemName("drawplateDiamond").setIconIndex(27).setMaxDamage(255);
  208.         itemBag = new ItemBag(Config.getItemID("items.base.bag.id"));
  209.         GameRegistry.addRecipe(new ItemStack(itemBag, 1, 0), new Object[] {"CCC", "C C", "CCC", 'C', itemCanvas});
  210.  
  211.         for (var0 = 1; var0 < 16; ++var0)
  212.         {
  213.             GameRegistry.addRecipe(new ItemStack(itemBag, 1, var0), new Object[] {"CCC", "CDC", "CCC", 'C', itemCanvas, 'D', new ItemStack(Item.dyePowder, 1, 15 - var0)});
  214.         }
  215.     }
  216.  
  217.     public static void initIndigo()
  218.     {
  219.         itemDyeIndigo = new ItemDyeIndigo(Config.getItemID("items.base.dyeIndigo.id"));
  220.         OreDictionary.registerOre("dyeBlue", new ItemStack(itemDyeIndigo));
  221.         GameRegistry.addShapelessRecipe(new ItemStack(Block.cloth.blockID, 1, 11), new Object[] {itemDyeIndigo, Block.cloth});
  222.         GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 12), new Object[] {itemDyeIndigo, new ItemStack(Item.dyePowder, 1, 15)});
  223.         GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 6), new Object[] {itemDyeIndigo, new ItemStack(Item.dyePowder, 1, 2)});
  224.         GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 2, 5), new Object[] {itemDyeIndigo, new ItemStack(Item.dyePowder, 1, 1)});
  225.         GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 3, 13), new Object[] {itemDyeIndigo, new ItemStack(Item.dyePowder, 1, 1), new ItemStack(Item.dyePowder, 1, 9)});
  226.         GameRegistry.addShapelessRecipe(new ItemStack(Item.dyePowder, 4, 13), new Object[] {itemDyeIndigo, new ItemStack(Item.dyePowder, 1, 1), new ItemStack(Item.dyePowder, 1, 1), new ItemStack(Item.dyePowder, 1, 15)});
  227.         CraftLib.addShapelessOreRecipe(new ItemStack(itemLumar, 2, 11), new Object[] {Item.redstone, "dyeBlue", "dyeBlue", Item.lightStoneDust});
  228.         CraftLib.addOreRecipe(new ItemStack(itemBag, 1, 11), new Object[] {"CCC", "CDC", "CCC", 'C', itemCanvas, 'D', "dyeBlue"});
  229.         itemPlanBlank = new ItemTextured(Config.getItemID("items.base.planBlank.id"), 81, "/eloraam/base/items1.png");
  230.         itemPlanBlank.setItemName("planBlank");
  231.         itemPlanBlank.setCreativeTab(CreativeTabs.tabMisc);
  232.         GameRegistry.addShapelessRecipe(new ItemStack(itemPlanBlank), new Object[] {Item.paper, itemDyeIndigo});
  233.         itemPlanFull = new ItemPlan(Config.getItemID("items.base.planFull.id"));
  234.     }
  235.  
  236.     public static void initAlloys()
  237.     {
  238.         CraftLib.addAlloyResult(itemIngotRed, new Object[] {new ItemStack(Item.redstone, 4), new ItemStack(Item.ingotIron, 1)});
  239.         CraftLib.addAlloyResult(itemIngotRed, new Object[] {new ItemStack(Item.redstone, 4), new OreStack("ingotCopper")});
  240.         CraftLib.addAlloyResult(CoreLib.copyStack(itemIngotBrass, 4), new Object[] {new OreStack("ingotTin"), new OreStack("ingotCopper", 3)});
  241.         CraftLib.addAlloyResult(CoreLib.copyStack(itemTinplate, 4), new Object[] {new OreStack("ingotTin"), new ItemStack(Item.ingotIron, 2)});
  242.         CraftLib.addAlloyResult(itemIngotBlue, new Object[] {new OreStack("ingotSilver"), new OreStack("dustNikolite", 4)});
  243.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 3), new Object[] {new ItemStack(Block.rail, 8)});
  244.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 3), new Object[] {new ItemStack(Item.bucketEmpty, 1)});
  245.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 5), new Object[] {new ItemStack(Item.minecartEmpty, 1)});
  246.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 6), new Object[] {new ItemStack(Item.doorSteel, 1)});
  247.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 3), new Object[] {new ItemStack(Block.fenceIron, 8)});
  248.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 31), new Object[] {new ItemStack(Block.anvil, 1, 0)});
  249.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 31), new Object[] {new ItemStack(Block.anvil, 1, 1)});
  250.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 31), new Object[] {new ItemStack(Block.anvil, 1, 2)});
  251.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 2), new Object[] {new ItemStack(Item.swordSteel, 1)});
  252.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 3), new Object[] {new ItemStack(Item.pickaxeSteel, 1)});
  253.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 3), new Object[] {new ItemStack(Item.axeSteel, 1)});
  254.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 1), new Object[] {new ItemStack(Item.shovelSteel, 1)});
  255.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 2), new Object[] {new ItemStack(Item.hoeSteel, 1)});
  256.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 2), new Object[] {new ItemStack(Item.swordGold, 1)});
  257.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 3), new Object[] {new ItemStack(Item.pickaxeGold, 1)});
  258.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 3), new Object[] {new ItemStack(Item.axeGold, 1)});
  259.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 1), new Object[] {new ItemStack(Item.shovelGold, 1)});
  260.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 2), new Object[] {new ItemStack(Item.hoeGold, 1)});
  261.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 5), new Object[] {new ItemStack(Item.helmetSteel, 1)});
  262.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 8), new Object[] {new ItemStack(Item.plateSteel, 1)});
  263.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 7), new Object[] {new ItemStack(Item.legsSteel, 1)});
  264.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 4), new Object[] {new ItemStack(Item.bootsSteel, 1)});
  265.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 5), new Object[] {new ItemStack(Item.helmetGold, 1)});
  266.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 8), new Object[] {new ItemStack(Item.plateGold, 1)});
  267.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 7), new Object[] {new ItemStack(Item.legsGold, 1)});
  268.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 4), new Object[] {new ItemStack(Item.bootsGold, 1)});
  269.         CraftLib.addAlloyResult(new ItemStack(Item.ingotGold, 1), new Object[] {new ItemStack(Item.goldNugget, 9)});
  270.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 1), new Object[] {CoreLib.copyStack(itemNuggetIron, 9)});
  271.         CraftLib.addAlloyResult(itemIngotSilver, new Object[] {CoreLib.copyStack(itemNuggetSilver, 9)});
  272.         CraftLib.addAlloyResult(itemIngotCopper, new Object[] {CoreLib.copyStack(itemNuggetCopper, 9)});
  273.         CraftLib.addAlloyResult(itemIngotTin, new Object[] {CoreLib.copyStack(itemNuggetTin, 9)});
  274.         CraftLib.addAlloyResult(itemIngotCopper, new Object[] {itemFineCopper});
  275.         CraftLib.addAlloyResult(new ItemStack(Item.ingotIron, 1), new Object[] {itemFineIron});
  276.         CraftLib.addAlloyResult(itemBouleSilicon, new Object[] {new ItemStack(Item.coal, 8, 0), new ItemStack(Block.sand, 8)});
  277.         CraftLib.addAlloyResult(itemBouleSilicon, new Object[] {new ItemStack(Item.coal, 8, 1), new ItemStack(Block.sand, 8)});
  278.         CraftLib.addAlloyResult(itemWaferBlue, new Object[] {CoreLib.copyStack(itemWaferSilicon, 1), new OreStack("dustNikolite", 4)});
  279.         CraftLib.addAlloyResult(itemWaferRed, new Object[] {CoreLib.copyStack(itemWaferSilicon, 1), new ItemStack(Item.redstone, 4)});
  280.     }
  281.  
  282.     public static void initMicroblocks()
  283.     {
  284.         blockMicro = new BlockMicro(Config.getBlockID("blocks.base.microblock.id"));
  285.         blockMicro.setBlockName("rpwire");
  286.         GameRegistry.registerBlock(blockMicro, ItemMicro.class, "micro");
  287.         blockMicro.addTileEntityMapping(0, TileCovered.class);
  288.         CoverLib.blockCoverPlate = blockMicro;
  289.     }
  290.  
  291.     public static void initFluids()
  292.     {
  293.         PipeLib.registerFluids();
  294.         PipeLib.registerVanillaFluid(Block.waterStill.blockID, Block.waterMoving.blockID);
  295.         PipeLib.registerVanillaFluid(Block.lavaStill.blockID, Block.lavaMoving.blockID);
  296.     }
  297.  
  298.     public static void initCoverMaterials()
  299.     {
  300.         CoverLib.addMaterial(0, 1, Block.cobblestone, "cobble", "Cobblestone");
  301.         CoverLib.addMaterial(1, 1, Block.stone, "stone", "Stone");
  302.         CoverLib.addMaterial(2, 0, Block.planks, "planks", "Wooden Plank");
  303.         CoverLib.addMaterial(3, 1, Block.sandStone, "sandstone", "Sandstone");
  304.         CoverLib.addMaterial(4, 1, Block.cobblestoneMossy, "moss", "Moss Stone");
  305.         CoverLib.addMaterial(5, 1, Block.brick, "brick", "Brick");
  306.         CoverLib.addMaterial(6, 2, Block.obsidian, "obsidian", "Obsidian");
  307.         CoverLib.addMaterial(7, 1, true, Block.glass, "glass", "Glass");
  308.         CoverLib.addMaterial(8, 0, Block.dirt, "dirt", "Dirt");
  309.         CoverLib.addMaterial(9, 0, Block.blockClay, "clay", "Clay");
  310.         CoverLib.addMaterial(10, 0, Block.bookShelf, "books", "Bookshelf");
  311.         CoverLib.addMaterial(11, 0, Block.blocksList[87], "netherrack", "Netherrack");
  312.         CoverLib.addMaterial(12, 0, Block.wood, 0, "wood", "Oak Wood");
  313.         CoverLib.addMaterial(13, 0, Block.wood, 1, "wood1", "Spruce Wood");
  314.         CoverLib.addMaterial(14, 0, Block.wood, 2, "wood2", "Birch Wood");
  315.         CoverLib.addMaterial(15, 0, Block.slowSand, "soul", "Soul Sand");
  316.         CoverLib.addMaterial(16, 1, Block.stoneSingleSlab, "slab", "Polished Stone");
  317.         CoverLib.addMaterial(17, 1, Block.blockSteel, "iron", "Iron");
  318.         CoverLib.addMaterial(18, 1, Block.blockGold, "gold", "Gold");
  319.         CoverLib.addMaterial(19, 2, Block.blockDiamond, "diamond", "Diamond");
  320.         CoverLib.addMaterial(20, 1, Block.blockLapis, "lapis", "Lapis Lazuli");
  321.         CoverLib.addMaterial(21, 0, Block.blockSnow, "snow", "Snow");
  322.         CoverLib.addMaterial(22, 0, Block.pumpkin, "pumpkin", "Pumpkin");
  323.         CoverLib.addMaterial(23, 1, Block.stoneBrick, 0, "stonebrick", "Stone Brick");
  324.         CoverLib.addMaterial(24, 1, Block.stoneBrick, 1, "stonebrick1", "Stone Brick");
  325.         CoverLib.addMaterial(25, 1, Block.stoneBrick, 2, "stonebrick2", "Stone Brick");
  326.         CoverLib.addMaterial(26, 1, Block.netherBrick, "netherbrick", "Nether Brick");
  327.         CoverLib.addMaterial(27, 1, Block.stoneBrick, 3, "stonebrick3", "Stone Brick");
  328.         CoverLib.addMaterial(28, 0, Block.planks, 1, "planks1", "Wooden Plank");
  329.         CoverLib.addMaterial(29, 0, Block.planks, 2, "planks2", "Wooden Plank");
  330.         CoverLib.addMaterial(30, 0, Block.planks, 3, "planks3", "Wooden Plank");
  331.         CoverLib.addMaterial(31, 1, Block.sandStone, 1, "sandstone1", "Sandstone");
  332.         CoverLib.addMaterial(64, 1, Block.sandStone, 2, "sandstone2", "Sandstone");
  333.         CoverLib.addMaterial(65, 0, Block.wood, 3, "wood3", "Jungle Wood");
  334.  
  335.         for (int var0 = 0; var0 < 16; ++var0)
  336.         {
  337.             CoverLib.addMaterial(32 + var0, 0, Block.cloth, var0, "wool." + CoreLib.rawColorNames[var0], CoreLib.enColorNames[var0] + " Wool");
  338.         }
  339.     }
  340.  
  341.     public static void initAchievements()
  342.     {
  343.         AchieveLib.registerAchievement(117027, "rpMakeAlloy", 0, 0, new ItemStack(blockAppliance, 1, 0), AchievementList.buildFurnace);
  344.         AchieveLib.registerAchievement(117028, "rpMakeSaw", 4, 0, new ItemStack(itemHandsawDiamond), AchievementList.diamonds);
  345.         AchieveLib.registerAchievement(117029, "rpIngotRed", 2, 2, itemIngotRed, "rpMakeAlloy");
  346.         AchieveLib.registerAchievement(117030, "rpIngotBlue", 2, 4, itemIngotBlue, "rpMakeAlloy");
  347.         AchieveLib.registerAchievement(117031, "rpIngotBrass", 2, 6, itemIngotBrass, "rpMakeAlloy");
  348.         AchieveLib.registerAchievement(117032, "rpAdvBench", -2, 0, new ItemStack(blockAppliance, 1, 3), AchievementList.buildWorkBench);
  349.         AchieveLib.addCraftingAchievement(new ItemStack(blockAppliance, 1, 0), "rpMakeAlloy");
  350.         AchieveLib.addCraftingAchievement(new ItemStack(blockAppliance, 1, 3), "rpAdvBench");
  351.         AchieveLib.addCraftingAchievement(new ItemStack(itemHandsawDiamond), "rpMakeSaw");
  352.         AchieveLib.addAlloyAchievement(itemIngotRed, "rpIngotRed");
  353.         AchieveLib.addAlloyAchievement(itemIngotBlue, "rpIngotBlue");
  354.         AchieveLib.addAlloyAchievement(itemIngotBrass, "rpIngotBrass");
  355.         AchievementPage.registerAchievementPage(AchieveLib.achievepage);
  356.     }
  357.  
  358.     public static void initBlocks()
  359.     {
  360.         blockMultiblock = new BlockMultiblock(Config.getBlockID("blocks.base.multiblock.id"));
  361.         GameRegistry.registerBlock(blockMultiblock, "multi");
  362.         GameRegistry.registerTileEntity(TileMultiblock.class, "RPMulti");
  363.         blockAppliance = new BlockAppliance(Config.getBlockID("blocks.base.appliance.id"));
  364.         GameRegistry.registerBlock(blockAppliance, ItemExtended.class, "appliance");
  365.         GameRegistry.registerTileEntity(TileAlloyFurnace.class, "RPAFurnace");
  366.         blockAppliance.addTileEntityMapping(0, TileAlloyFurnace.class);
  367.         blockAppliance.setItemName(0, "rpafurnace");
  368.         GameRegistry.addRecipe(new ItemStack(blockAppliance, 1, 0), new Object[] {"BBB", "B B", "BBB", 'B', Block.brick});
  369.         GameRegistry.registerTileEntity(TileAdvBench.class, "RPAdvBench");
  370.         blockAppliance.addTileEntityMapping(3, TileAdvBench.class);
  371.         blockAppliance.setItemName(3, "rpabench");
  372.         CraftLib.addOreRecipe(new ItemStack(blockAppliance, 1, 3), new Object[] {"SSS", "WTW", "WCW", 'S', Block.stone, 'W', "plankWood", 'T', Block.workbench, 'C', Block.chest});
  373.         itemHandsawIron = new ItemHandsaw(Config.getItemID("items.base.handsawIron.id"), 0);
  374.         itemHandsawDiamond = new ItemHandsaw(Config.getItemID("items.base.handsawDiamond.id"), 2);
  375.         itemHandsawIron.setItemName("handsawIron").setIconIndex(17);
  376.         itemHandsawIron.setMaxDamage(320);
  377.         itemHandsawDiamond.setItemName("handsawDiamond").setIconIndex(18);
  378.         itemHandsawDiamond.setMaxDamage(1280);
  379.         GameRegistry.addRecipe(new ItemStack(itemHandsawIron, 1), new Object[] {"WWW", " II", " II", 'I', Item.ingotIron, 'W', Item.stick});
  380.         GameRegistry.addRecipe(new ItemStack(itemHandsawDiamond, 1), new Object[] {"WWW", " II", " DD", 'I', Item.ingotIron, 'D', Item.diamond, 'W', Item.stick});
  381.         GameRegistry.addShapelessRecipe(CoreLib.copyStack(itemWaferSilicon, 16), new Object[] {itemBouleSilicon, new ItemStack(itemHandsawDiamond, 1, -1)});
  382.         itemScrewdriver = new ItemScrewdriver(Config.getItemID("items.base.screwdriver.id"));
  383.         itemScrewdriver.setItemName("screwdriver").setIconIndex(16);
  384.         GameRegistry.addRecipe(new ItemStack(itemScrewdriver, 1), new Object[] {"I ", " W", 'I', Item.ingotIron, 'W', Item.stick});
  385.         GameRegistry.addRecipe(new ItemStack(itemDrawplateDiamond, 1), new Object[] {" I ", "IDI", " I ", 'I', new ItemStack(blockMicro, 1, 5649), 'D', new ItemStack(blockMicro, 1, 4115)});
  386.         GameRegistry.addShapelessRecipe(itemFineIron, new Object[] {Item.ingotIron, new ItemStack(itemDrawplateDiamond, 1, -1)});
  387.         CraftLib.addShapelessOreRecipe(itemFineCopper, new Object[] {"ingotCopper", new ItemStack(itemDrawplateDiamond, 1, -1)});
  388.         GameRegistry.addRecipe(CoreLib.copyStack(itemNuggetIron, 9), new Object[] {"I", 'I', Item.ingotIron});
  389.         CraftLib.addOreRecipe(CoreLib.copyStack(itemNuggetCopper, 9), new Object[] {"I", 'I', "ingotCopper"});
  390.         CraftLib.addOreRecipe(CoreLib.copyStack(itemNuggetTin, 9), new Object[] {"I", 'I', "ingotTin"});
  391.         CraftLib.addOreRecipe(CoreLib.copyStack(itemNuggetSilver, 9), new Object[] {"I", 'I', "ingotSilver"});
  392.         GameRegistry.addRecipe(new ItemStack(Item.ingotIron, 1, 0), new Object[] {"III", "III", "III", 'I', itemNuggetIron});
  393.         GameRegistry.addRecipe(itemIngotSilver, new Object[] {"III", "III", "III", 'I', itemNuggetSilver});
  394.         GameRegistry.addRecipe(itemIngotTin, new Object[] {"III", "III", "III", 'I', itemNuggetTin});
  395.         GameRegistry.addRecipe(itemIngotCopper, new Object[] {"III", "III", "III", 'I', itemNuggetCopper});
  396.         GameRegistry.addRecipe(itemCanvas, new Object[] {"SSS", "SWS", "SSS", 'S', Item.silk, 'W', Item.stick});
  397.         GameRegistry.addRecipe(new ItemStack(Item.diamond, 2), new Object[] {"D", 'D', new ItemStack(blockMicro, 1, 4115)});
  398.         GameRegistry.addRecipe(new ItemStack(Item.diamond, 1), new Object[] {"D", 'D', new ItemStack(blockMicro, 1, 19)});
  399.         GameRegistry.addRecipe(new ItemStack(Item.ingotIron, 2), new Object[] {"I", 'I', new ItemStack(blockMicro, 1, 4113)});
  400.         GameRegistry.addRecipe(new ItemStack(Item.ingotIron, 1), new Object[] {"I", 'I', new ItemStack(blockMicro, 1, 17)});
  401.     }
  402. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement