Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 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.ItemDiamondShears;
  5. import com.TheRPGAdventurer.ROTD.client.items.ItemModAxe;
  6. import com.TheRPGAdventurer.ROTD.client.items.ItemModPickAxe;
  7. import com.TheRPGAdventurer.ROTD.client.items.ItemModShovel;
  8. import com.TheRPGAdventurer.ROTD.client.items.ItemModSword;
  9.  
  10. import net.minecraft.item.Item;
  11. import net.minecraft.item.Item.ToolMaterial;
  12. import net.minecraft.item.ItemPickaxe;
  13. import net.minecraft.item.ItemSpade;
  14. import net.minecraft.item.ItemStack;
  15. import net.minecraft.item.ItemSword;
  16. import net.minecraftforge.common.util.EnumHelper;
  17.  
  18. public class ModTools {
  19.  
  20. public static final ToolMaterial JadeDragonScaleMaterial = EnumHelper.addToolMaterial(RealmOfTheDragons.MODID + ":jadedragonscales", 4, 1700, 8.0F, 6.0F, 11);
  21. public static final ToolMaterial RubyDragonScaleMaterial = EnumHelper.addToolMaterial(RealmOfTheDragons.MODID + ":rubydragonscales", 4, 1700, 8.0F, 6.0F, 11);
  22. public static final ToolMaterial GarnetDragonScaleMaterial = EnumHelper.addToolMaterial(RealmOfTheDragons.MODID + ":garnetdragonscales", 4, 1700, 8.0F, 6.0F, 11);
  23. public static final ToolMaterial AmethystDragonScaleMaterial = EnumHelper.addToolMaterial(RealmOfTheDragons.MODID + ":amethystdragonscales", 4, 1700, 8.0F, 6.0F, 11);
  24. public static final ToolMaterial SapphireDragonScaleMaterial = EnumHelper.addToolMaterial(RealmOfTheDragons.MODID + ":sapphiredragonscales", 4, 1700, 8.0F, 6.0F, 11);
  25.  
  26. public static ItemModPickAxe jadeDragonPickaxe = new ItemModPickAxe(JadeDragonScaleMaterial, "jade_dragon_pickaxe");
  27. public static ItemModAxe jadeDragonAxe = new ItemModAxe(JadeDragonScaleMaterial, "jade_dragon_axe");
  28. public static ItemModShovel jadeDragonShovel = new ItemModShovel(JadeDragonScaleMaterial, "jade_dragon_shovel");
  29. public static ItemModSword jadeDragonSword = new ItemModSword(JadeDragonScaleMaterial, "jade_dragon_sword");
  30.  
  31. public static ItemModPickAxe garnetDragonPickaxe = new ItemModPickAxe(GarnetDragonScaleMaterial, "garnet_dragon_pickaxe");
  32. public static ItemModAxe garnetDragonAxe = new ItemModAxe(GarnetDragonScaleMaterial, "garnet_dragon_axe");
  33. public static ItemModShovel garnetDragonShovel = new ItemModShovel(GarnetDragonScaleMaterial, "garnet_dragon_shovel");
  34. public static ItemModSword garnetDragonSword = new ItemModSword(GarnetDragonScaleMaterial, "garnet_dragon_sword");
  35.  
  36. public static ItemModPickAxe sapphireDragonPickaxe = new ItemModPickAxe(SapphireDragonScaleMaterial, "sapphire_dragon_pickaxe");
  37. public static ItemModAxe sapphireDragonAxe = new ItemModAxe(SapphireDragonScaleMaterial, "sapphire_dragon_axe");
  38. public static ItemModShovel sapphireDragonShovel = new ItemModShovel(SapphireDragonScaleMaterial, "sapphire_dragon_shovel");
  39. public static ItemModSword sapphireDragonSword = new ItemModSword(SapphireDragonScaleMaterial, "sapphire_dragon_sword");
  40.  
  41. public static ItemModPickAxe amethystDragonPickaxe = new ItemModPickAxe(AmethystDragonScaleMaterial, "amethyst_dragon_pickaxe");
  42. public static ItemModAxe amethystDragonAxe = new ItemModAxe(AmethystDragonScaleMaterial, "amethyst_dragon_axe");
  43. public static ItemModShovel amethystDragonShovel = new ItemModShovel(AmethystDragonScaleMaterial, "amethyst_dragon_shovel");
  44. public static ItemModSword amethystDragonSword = new ItemModSword(AmethystDragonScaleMaterial, "amethyst_dragon_sword");
  45.  
  46. public static ItemModPickAxe rubyDragonPickaxe = new ItemModPickAxe(RubyDragonScaleMaterial, "ruby_dragon_pickaxe");
  47. public static ItemModAxe rubyDragonAxe = new ItemModAxe(RubyDragonScaleMaterial, "ruby_dragon_axe");
  48. public static ItemModShovel rubyDragonShovel = new ItemModShovel(RubyDragonScaleMaterial, "ruby_dragon_shovel");
  49. public static ItemModSword rubyDragonSword = new ItemModSword(RubyDragonScaleMaterial, "ruby_dragon_sword");
  50.  
  51. public static ItemDiamondShears diamond_shears = new ItemDiamondShears("diamond_shears");
  52.  
  53. public static final Item[] TOOLS = {
  54. jadeDragonPickaxe,
  55. jadeDragonAxe,
  56. jadeDragonShovel,
  57. jadeDragonSword,
  58. rubyDragonPickaxe,
  59. rubyDragonAxe,
  60. rubyDragonShovel,
  61. rubyDragonSword,
  62. amethystDragonAxe,
  63. amethystDragonPickaxe,
  64. amethystDragonShovel,
  65. amethystDragonSword,
  66. garnetDragonAxe,
  67. garnetDragonPickaxe,
  68. garnetDragonShovel,
  69. garnetDragonSword,
  70. sapphireDragonAxe,
  71. sapphireDragonPickaxe,
  72. sapphireDragonShovel,
  73. sapphireDragonSword,
  74. diamond_shears
  75. };
  76.  
  77. private static void initRepairs() {
  78. AmethystDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.AmethystDragonScales));
  79. GarnetDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.GarnetDragonScales));
  80. JadeDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.JadeDragonScales));
  81. RubyDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.RubyDragonScales));
  82. SapphireDragonScaleMaterial.setRepairItem(new ItemStack(ModItems.SapphireDragonScales));
  83. }
  84.  
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement