Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. package net.craftoflegends.mod;
  2.  
  3. import net.craftoflegends.mod.blocks.BronzeBlock;
  4. import net.craftoflegends.mod.blocks.CopperBlock;
  5. import net.craftoflegends.mod.blocks.CopperOre;
  6. import net.craftoflegends.mod.blocks.CrystalBlock;
  7. import net.craftoflegends.mod.blocks.CrystalOre;
  8. import net.craftoflegends.mod.blocks.ManganeseBlock;
  9. import net.craftoflegends.mod.blocks.ManganeseOre;
  10. import net.craftoflegends.mod.blocks.PainiteBlock;
  11. import net.craftoflegends.mod.blocks.PainiteOre;
  12. import net.craftoflegends.mod.blocks.SteelBlock;
  13. import net.craftoflegends.mod.blocks.TinBlock;
  14. import net.craftoflegends.mod.blocks.TinOre;
  15. import net.craftoflegends.mod.blocks.VaniteBlock;
  16. import net.craftoflegends.mod.blocks.VaniteOre;
  17. import net.craftoflegends.mod.items.COLItems;
  18. import net.minecraft.block.Block;
  19. import net.minecraft.block.material.Material;
  20. import net.minecraft.creativetab.CreativeTabs;
  21. import net.minecraft.item.Item;
  22. import cpw.mods.fml.common.Mod;
  23. import cpw.mods.fml.common.Mod.EventHandler;
  24. import cpw.mods.fml.common.event.FMLInitializationEvent;
  25. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  26. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  27. import cpw.mods.fml.common.registry.GameRegistry;
  28. import cpw.mods.fml.relauncher.Side;
  29. import cpw.mods.fml.relauncher.SideOnly;
  30.  
  31.  
  32.  
  33. @Mod(modid = CraftofLegends.modid, version = CraftofLegends.version)
  34. public class CraftofLegends {
  35.  
  36. public static final String modid = "CraftofLegends";
  37. public static final String version = "0.0.1";
  38.  
  39. public static CreativeTabs craftoflegendsTab;
  40.  
  41. //Items
  42. public static Item itemBronzeIngot;
  43. public static Item itemCopperIngot;
  44. public static Item itemCrystalShard;
  45. public static Item itemManganeseIngot;
  46. public static Item itemPainisteelIngot;
  47. public static Item itemPainiteGem;
  48. public static Item itemSteelIngot;
  49. public static Item itemTinIngot;
  50. public static Item itemVanisteelIngot;
  51. public static Item itemVaniteGem;
  52.  
  53. //Blocks
  54. public static Block oreCopperOre;
  55. public static Block oreCrystalOre;
  56. public static Block oreManganeseOre;
  57. public static Block orePainiteOre;
  58. public static Block oreTinOre;
  59. public static Block oreVaniteOre;
  60.  
  61. public static Block blockCopperBlock;
  62. public static Block blockBronzeBlock;
  63. public static Block blockCrystalBlock;
  64. public static Block blockManganeseBlock;
  65. public static Block blockPainiteBlock;
  66. public static Block blockSteelBlock;
  67. public static Block blockTinBlock;
  68. public static Block blockVaniteBlock;
  69.  
  70. @EventHandler
  71. public void PreInit(FMLPreInitializationEvent preEvent){
  72.  
  73. craftoflegendsTab = new CreativeTabs("Craft of Legends") {
  74. @SideOnly(Side.CLIENT)
  75. public Item getTabIconItem() {
  76. return Item.getItemFromBlock(CraftofLegends.oreCopperOre);
  77. }
  78. };
  79.  
  80. //Names
  81.  
  82. //Blocks
  83. oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre");
  84. oreCopperOre = new CrystalOre(Material.rock).setBlockName("CrystalOre");
  85. oreCopperOre = new ManganeseOre(Material.rock).setBlockName("ManganeseOre");
  86. oreCopperOre = new PainiteOre(Material.rock).setBlockName("PainiteOre");
  87. oreCopperOre = new TinOre(Material.rock).setBlockName("TinOre");
  88. oreCopperOre = new VaniteOre(Material.rock).setBlockName("VaniteOre");
  89.  
  90. blockCopperBlock = new CopperBlock(Material.iron).setBlockName("CopperBlock");
  91. blockCopperBlock = new BronzeBlock(Material.iron).setBlockName("BronzeBlock");
  92. blockCopperBlock = new CrystalBlock(Material.iron).setBlockName("CrystalBlock");
  93. blockCopperBlock = new ManganeseBlock(Material.iron).setBlockName("ManganeseBlock");
  94. blockCopperBlock = new PainiteBlock(Material.iron).setBlockName("PainiteBlock");
  95. blockCopperBlock = new SteelBlock(Material.iron).setBlockName("SteelBlock");
  96. blockCopperBlock = new TinBlock(Material.iron).setBlockName("TinBlock");
  97. blockCopperBlock = new VaniteBlock(Material.iron).setBlockName("VaniteBlock");
  98.  
  99. //Items
  100. itemBronzeIngot = new COLItems().setUnlocalizedName("BronzeIngot");
  101. itemCopperIngot = new COLItems().setUnlocalizedName("CopperIngot");
  102. itemCrystalShard = new COLItems().setUnlocalizedName("CrystalShard");
  103. itemManganeseIngot = new COLItems().setUnlocalizedName("ManganeseIngot");
  104. itemPainisteelIngot = new COLItems().setUnlocalizedName("PainisteelIngot");
  105. itemPainiteGem = new COLItems().setUnlocalizedName("PainiteGem");
  106. itemSteelIngot = new COLItems().setUnlocalizedName("SteelIngot");
  107. itemTinIngot = new COLItems().setUnlocalizedName("TinIngot");
  108. itemVanisteelIngot = new COLItems().setUnlocalizedName("VanisteelIngot");
  109. itemVaniteGem = new COLItems().setUnlocalizedName("VaniteGem");
  110.  
  111. //Registry
  112.  
  113. //Blocks
  114. GameRegistry.registerBlock(oreCopperOre, "CopperOre");
  115. GameRegistry.registerBlock(oreCrystalOre, "CrystalOre");
  116. GameRegistry.registerBlock(oreManganeseOre, "ManganeseOre");
  117. GameRegistry.registerBlock(orePainiteOre, "PainiteOre");
  118. GameRegistry.registerBlock(oreTinOre, "TinOre");
  119. GameRegistry.registerBlock(oreVaniteOre, "VaniteOre");
  120.  
  121. GameRegistry.registerBlock(blockCopperBlock, "CopperBlock");
  122. GameRegistry.registerBlock(blockBronzeBlock, "BronzeBlock");
  123. GameRegistry.registerBlock(blockCrystalBlock, "CrystalBlock");
  124. GameRegistry.registerBlock(blockManganeseBlock, "ManganeseBlock");
  125. GameRegistry.registerBlock(blockPainiteBlock, "PainiteBlock");
  126. GameRegistry.registerBlock(blockSteelBlock, "SteelBlock");
  127. GameRegistry.registerBlock(blockTinBlock, "TinBlock");
  128. GameRegistry.registerBlock(blockVaniteBlock, "VaniteBlock");
  129.  
  130.  
  131. //Items
  132. GameRegistry.registerItem(itemBronzeIngot, "BronzeIngot");
  133. GameRegistry.registerItem(itemCopperIngot, "CopperIngot");
  134. GameRegistry.registerItem(itemCrystalShard, "CrystalShard");
  135. GameRegistry.registerItem(itemManganeseIngot, "ManganeseIngot");
  136. GameRegistry.registerItem(itemPainisteelIngot, "PainisteelIngot");
  137. GameRegistry.registerItem(itemPainiteGem, "PainiteGem");
  138. GameRegistry.registerItem(itemSteelIngot, "SteelIngot");
  139. GameRegistry.registerItem(itemTinIngot, "TinIngot");
  140. GameRegistry.registerItem(itemVanisteelIngot, "VanisteelIngot");
  141. GameRegistry.registerItem(itemVaniteGem, "VaniteGem");
  142.  
  143. }
  144.  
  145. @EventHandler
  146. public void Init(FMLInitializationEvent event){
  147.  
  148. }
  149.  
  150. @EventHandler
  151. public void PostInit(FMLPostInitializationEvent postEvent){
  152.  
  153. }
  154.  
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement