Guest User

Untitled

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