mrRobertman

Untitled

Jul 29th, 2013
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ===============
  2. ==Main Class==
  3. ==============
  4.  
  5. public static Item EmeraldHelmet;
  6. int EmeraldHelmetID = 4000;
  7.  
  8. public static Item EmeraldChestplate;
  9. int EmeraldChestPlateID = 4001;
  10.  
  11. public static Item EmeraldLeggings;
  12. int EmeraldLeggingsID = 4002;
  13.  
  14. public static Item EmeraldBoots;
  15. int EmeraldBootsID = 4003;
  16.  
  17.  
  18.  
  19. EnumArmorMaterial EMERALDORE2 = EnumHelper.addArmorMaterial("EMERALDORE", 72, new int[]{4, 7, 5, 4}, 15);
  20.  
  21.  
  22.  
  23. EmeraldHelmet = new EmeraldHelm(EmeraldHelmetID, EMERALDORE2, ModLoader.addArmor("Emerald_1"), 0).setUnlocalizedName("moreOres:Emerald_helm").setCreativeTab(CreativeTabs.tabCombat);
  24. EmeraldChestplate = new EmeraldChest(EmeraldChestPlateID, EMERALDORE2, ModLoader.addArmor("Emerald_1"), 1).setUnlocalizedName("moreOres:Emerald_chest").setCreativeTab(CreativeTabs.tabCombat);
  25. EmeraldLeggings = new EmeraldLegs(EmeraldLeggingsID, EMERALDORE2, ModLoader.addArmor("Emerald_2"), 2).setUnlocalizedName("moreOres:Emerald_pants").setCreativeTab(CreativeTabs.tabCombat);
  26. EmeraldBoots = new EmeraldBoots(EmeraldBootsID, EMERALDORE2, ModLoader.addArmor("Emerald_1"), 3).setUnlocalizedName("moreOres:Emerald_boot").setCreativeTab(CreativeTabs.tabCombat);
  27.  
  28. ==================
  29. ==Helmet Class==
  30. ==================
  31. (Chestplate, legs, and boots are nearly the same)
  32.  
  33.  
  34. public class EmeraldHelm extends ItemArmor{
  35.  
  36. public EmeraldHelm(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
  37. super(par1, par2EnumArmorMaterial, par3, par4);
  38.  
  39. }
  40. @SideOnly(Side.CLIENT)
  41. public void registerIcons(IconRegister iconRegister){
  42. itemIcon = iconRegister.registerIcon("moreOres:Emerald_Helmet");
  43. }
  44.  
  45. public String getArmorTextureFile(ItemStack itemstack, Entity entity, int slot, int layer) {
  46. return "moreOres:textures/models/armor/Emerald_1.png";
  47. }
  48. }
RAW Paste Data