Guest User

some1

a guest
Sep 23rd, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. package com.assassin.Main;
  2. import com.assassin.lib.*;
  3. import net.minecraft.entity.Entity;
  4. import com.assassin.help.RegisterHelper;
  5. import com.assassin.item.*;
  6. import cpw.mods.fml.common.Mod;
  7. import cpw.mods.fml.common.Mod.EventHandler;
  8. import cpw.mods.fml.common.SidedProxy;
  9. import cpw.mods.fml.common.event.FMLInitializationEvent;
  10. import cpw.mods.fml.common.event.FMLPostInitializationEvent;
  11. import cpw.mods.fml.common.event.FMLPreInitializationEvent;
  12. import cpw.mods.fml.common.registry.GameRegistry;
  13. import net.minecraft.block.Block;
  14. import net.minecraft.block.material.Material;
  15. import net.minecraft.client.gui.inventory.GuiFurnace;
  16. import net.minecraft.init.Blocks;
  17. import net.minecraft.init.Items;
  18. import net.minecraft.item.Item;
  19. import net.minecraft.item.ItemStack;
  20. import net.minecraft.item.Item.ToolMaterial;
  21. import net.minecraft.item.ItemArmor;
  22. import net.minecraft.item.ItemArmor.ArmorMaterial;
  23. import net.minecraftforge.common.util.EnumHelper;
  24. import com.assassin.blocks.*;
  25.  
  26. @Mod(modid = RefStrings.MODID , name = RefStrings.NAME , version = RefStrings.VERSION )
  27. public class MainRegistry {
  28.  
  29. @SidedProxy(clientSide = RefStrings.CLIENTSIDE , serverSide = RefStrings.SERVERSIDE )
  30. public static ServerProxy proxy;
  31.  
  32. //Item declarations
  33.  
  34. //Hardened Steel
  35.  
  36. public static Item HSteelPickaxe;
  37.  
  38. public static Item HSteelShovel;
  39.  
  40. public static Item HSteelAxe;
  41.  
  42. public static Item HSteelSword;
  43.  
  44. public static Item HSteelHelmet;
  45.  
  46. public static Item HSteelChestplate;
  47.  
  48. public static Item HSteelLeggings;
  49.  
  50. public static Item HSteelBoots;
  51.  
  52.  
  53. @EventHandler
  54. public static void PreLoad(FMLPreInitializationEvent PreEvent) {
  55. HSteelIngot.mainRegistry();
  56. HSteelFurnace.mainRegistry();
  57. proxy.registerRenderInfo();
  58.  
  59. //EnumHelper
  60.  
  61. final ToolMaterial HSTEEL = EnumHelper.addToolMaterial("HSTEEL", 3, 700, 8.0F, 3.0F, 25);
  62.  
  63. final ArmorMaterial HSTEELARMOR = EnumHelper.addArmorMaterial("HSTEEL", 25, new int[] {3, 8, 6, 3}, 25);
  64.  
  65. //Furnace
  66.  
  67.  
  68. //Tools and sword
  69.  
  70. //Hardened Steel
  71.  
  72. //Pickaxe
  73.  
  74. HSteelPickaxe = new ItemHSteelPickaxe(HSTEEL);
  75.  
  76. RegisterHelper.registerItem(HSteelPickaxe);
  77.  
  78. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelPickaxe), new Object[] {"***", " # ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
  79.  
  80. //Shovel
  81.  
  82. HSteelShovel = new ItemHSteelShovel(HSTEEL);
  83. RegisterHelper.registerItem(HSteelShovel);
  84. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelShovel), new Object[] {" * ", " # ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
  85.  
  86.  
  87. //Axe
  88.  
  89. HSteelAxe = new ItemHSteelAxe(HSTEEL);
  90. RegisterHelper.registerItem(HSteelAxe);
  91. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelAxe), new Object[] {"** ", "*# ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
  92.  
  93. //Sword
  94.  
  95. HSteelSword = new ItemHSteelSword(HSTEEL);
  96. RegisterHelper.registerItem(HSteelSword);
  97. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelSword), new Object[] {" * ", " * ", " # ", '*', HSteelIngot.hsteelingot, '#', Items.stick});
  98.  
  99.  
  100. //Armor
  101.  
  102. //Helmet
  103.  
  104.  
  105.  
  106. Object HShelmetID;
  107. HSteelHelmet = new ItemHSteelHelmet(HSTEELARMOR);
  108. RegisterHelper.registerItem(HSteelHelmet);
  109. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelHelmet), new Object[] {"***", "* *", " ", '*', HSteelIngot.hsteelingot});
  110.  
  111. //Chestplate
  112.  
  113. Object HSchestplateID;
  114. HSteelChestplate = new ItemHSteelChestplate(HSTEELARMOR);
  115. RegisterHelper.registerItem(HSteelChestplate);
  116. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelChestplate), new Object [] {"* *", "***", "***", '*', HSteelIngot.hsteelingot});
  117.  
  118. //Leggings
  119.  
  120. Object HSggingsID;
  121. HSteelLeggings = new ItemHSteelLeggings(HSTEELARMOR);
  122. RegisterHelper.registerItem(HSteelLeggings);
  123. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelLeggings), new Object [] {"***", "* *", "* *", '*', HSteelIngot.hsteelingot});
  124.  
  125. //Boots
  126.  
  127. Object HSbootsID;
  128. HSteelBoots = new ItemHSteelBoots(HSTEELARMOR);
  129. RegisterHelper.registerItem(HSteelBoots);
  130. GameRegistry.addRecipe(new ItemStack (MainRegistry.HSteelBoots), new Object [] {" ", "* *", "* *", '*', HSteelIngot.hsteelingot});
  131.  
  132. //Random
  133. GameRegistry.addRecipe(new ItemStack(Items.saddle), new Object[] {"***", "*#*", " ", '*', Items.leather, '#', HSteelIngot.hsteelingot});
  134. GameRegistry.addSmelting(Items.rotten_flesh, new ItemStack(Items.leather), 1.0F);
  135.  
  136. }
  137.  
  138.  
  139.  
  140. @EventHandler
  141. public static void load(FMLInitializationEvent event) {
  142. }
  143. @EventHandler
  144. public static void PostLoad(FMLPostInitializationEvent PreEvent) {
  145. }
  146.  
  147.  
  148.  
  149.  
  150.  
  151. }
Advertisement
Add Comment
Please, Sign In to add comment