Guest User

Untitled

a guest
Dec 16th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. package com.TheRPGAdventurer.ROTD.client.init;
  2.  
  3. import com.TheRPGAdventurer.ROTD.RealmOfTheDragons;
  4. import com.TheRPGAdventurer.ROTD.client.items.ItemModArmour;
  5.  
  6. import net.minecraft.init.SoundEvents;
  7. import net.minecraft.inventory.EntityEquipmentSlot;
  8. import net.minecraft.item.Item;
  9. import net.minecraft.item.ItemArmor;
  10. import net.minecraft.item.ItemArmor.ArmorMaterial;
  11. import net.minecraft.item.ItemStack;
  12. import net.minecraftforge.common.util.EnumHelper;
  13.  
  14. public class ModArmour {
  15.  
  16. public static final ArmorMaterial jadeDragonScaleMaterial = EnumHelper.addArmorMaterial("jadeDragonScale", RealmOfTheDragons.MODID + ":jadeDragonScale", 45, new int [] {4,7,9,4}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 5.0F);
  17. public static final ArmorMaterial rubyDragonScaleMaterial = EnumHelper.addArmorMaterial("rubyDragonScale", RealmOfTheDragons.MODID + ":rubyDragonScale", 45, new int [] {4,7,9,4}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 5.0F);
  18. public static final ArmorMaterial garnetDragonScaleMaterial = EnumHelper.addArmorMaterial("garnetDragonScale", RealmOfTheDragons.MODID + ":garnetDragonScale", 45, new int [] {4,7,9,4}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 5.0F);
  19. public static final ArmorMaterial amethystDragonScaleMaterial = EnumHelper.addArmorMaterial("amethystDragonScale", RealmOfTheDragons.MODID + ":amethystDragonScale", 45, new int [] {4,7,9,4}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 5.0F);
  20. public static final ArmorMaterial sapphireDragonScaleMaterial = EnumHelper.addArmorMaterial("sapphireDragonScale", RealmOfTheDragons.MODID + ":sapphireDragonScale", 45, new int [] {4,7,9,4}, 11, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 5.0F);
  21.  
  22. public static ItemArmor jadeDragonScaleCap;
  23. public static ItemArmor jadeDragonScaleChestplate;
  24. public static ItemArmor jadeDragonScaleLeggings;
  25. public static ItemArmor jadeDragonScaleBoots;
  26.  
  27. public static ItemArmor rubyDragonScaleCap;
  28. public static ItemArmor rubyDragonScaleChestplate;
  29. public static ItemArmor rubyDragonScaleLeggings;
  30. public static ItemArmor rubyDragonScaleBoots;
  31.  
  32. public static ItemArmor garnetDragonScaleCap;
  33. public static ItemArmor garnetDragonScaleChestplate;
  34. public static ItemArmor garnetDragonScaleLeggings;
  35. public static ItemArmor garnetDragonScaleBoots;
  36.  
  37. public static ItemArmor amethystDragonScaleCap;
  38. public static ItemArmor amethystDragonscaleChesplate;
  39. public static ItemArmor amethystDragonScaleLeggings;
  40. public static ItemArmor amethystDragonScaleBoots;
  41.  
  42. public static ItemArmor sapphireDragonScaleCap;
  43. public static ItemArmor sapphireDragonScaleChestplate;
  44. public static ItemArmor sapphireDragonScaleLeggings;
  45. public static ItemArmor sapphireDragonScaleBoots;
  46.  
  47. public static final Item[] ARMOR = {
  48. jadeDragonScaleCap = new ItemModArmour(jadeDragonScaleMaterial, 1, EntityEquipmentSlot.HEAD, "jade_dragonscale_cap"),
  49. jadeDragonScaleChestplate = new ItemModArmour(jadeDragonScaleMaterial, 1, EntityEquipmentSlot.CHEST, "jade_dragonscale_chestplate"),
  50. jadeDragonScaleLeggings = new ItemModArmour(jadeDragonScaleMaterial, 2, EntityEquipmentSlot.LEGS, "jade_dragonscale_leggings"),
  51. jadeDragonScaleBoots = new ItemModArmour(jadeDragonScaleMaterial, 1, EntityEquipmentSlot.FEET, "jade_dragonscale_boots"),
  52.  
  53. rubyDragonScaleCap = new ItemModArmour(rubyDragonScaleMaterial, 1, EntityEquipmentSlot.HEAD, "ruby_dragonscale_cap"),
  54. rubyDragonScaleChestplate = new ItemModArmour(rubyDragonScaleMaterial, 1, EntityEquipmentSlot.CHEST, "ruby_dragonscale_chestplate"),
  55. rubyDragonScaleLeggings = new ItemModArmour(rubyDragonScaleMaterial, 2, EntityEquipmentSlot.LEGS, "ruby_dragonscale_leggings"),
  56. rubyDragonScaleBoots = new ItemModArmour(rubyDragonScaleMaterial, 1, EntityEquipmentSlot.FEET, "ruby_dragonscale_boots"),
  57.  
  58. garnetDragonScaleCap = new ItemModArmour(garnetDragonScaleMaterial, 1, EntityEquipmentSlot.HEAD, "garnet_dragonscale_cap"),
  59. garnetDragonScaleChestplate = new ItemModArmour(garnetDragonScaleMaterial, 1, EntityEquipmentSlot.CHEST, "garnet_dragonscale_chestplate"),
  60. garnetDragonScaleLeggings = new ItemModArmour(garnetDragonScaleMaterial, 2, EntityEquipmentSlot.LEGS, "garnet_dragonscale_leggings"),
  61. garnetDragonScaleBoots = new ItemModArmour(garnetDragonScaleMaterial, 1, EntityEquipmentSlot.FEET, "garnet_dragonscale_boots"),
  62.  
  63. amethystDragonScaleCap = new ItemModArmour(amethystDragonScaleMaterial, 1, EntityEquipmentSlot.HEAD, "amethyst_dragonscale_cap"),
  64. amethystDragonscaleChesplate = new ItemModArmour(amethystDragonScaleMaterial, 1, EntityEquipmentSlot.CHEST, "amethyst_dragonscale_chestplate"),
  65. amethystDragonScaleLeggings = new ItemModArmour(amethystDragonScaleMaterial, 2, EntityEquipmentSlot.LEGS, "amethyst_dragonscale_leggings"),
  66. amethystDragonScaleBoots = new ItemModArmour(amethystDragonScaleMaterial, 1, EntityEquipmentSlot.FEET, "amethyst_dragonscale_boots"),
  67.  
  68. sapphireDragonScaleCap = new ItemModArmour(sapphireDragonScaleMaterial, 1, EntityEquipmentSlot.HEAD, "sapphire_dragonscale_cap"),
  69. sapphireDragonScaleChestplate = new ItemModArmour(sapphireDragonScaleMaterial, 1, EntityEquipmentSlot.CHEST, "sapphire_dragonscale_chestplate"),
  70. sapphireDragonScaleLeggings = new ItemModArmour(sapphireDragonScaleMaterial, 2, EntityEquipmentSlot.LEGS, "sapphire_dragonscale_leggings"),
  71. sapphireDragonScaleBoots = new ItemModArmour(sapphireDragonScaleMaterial, 1, EntityEquipmentSlot.FEET, "sapphire_dragonscale_boots")
  72.  
  73. };
  74.  
  75. public static void initRepairs() {
  76. amethystDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.AmethystDragonScales));
  77. garnetDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.GarnetDragonScales));
  78. jadeDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.JadeDragonScales));
  79. rubyDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.RubyDragonScales));
  80. sapphireDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.SapphireDragonScales));
  81. }
  82.  
  83. }
Advertisement
Add Comment
Please, Sign In to add comment