Guest User

Untitled

a guest
Oct 21st, 2019
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.skulldarkz.testmod.init;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. import com.skulldarkz.testmod.items.ItemBase;
  7. import com.skulldarkz.testmod.items.armor.ArmorBase;
  8. import com.skulldarkz.testmod.items.tools.ToolAxe;
  9. import com.skulldarkz.testmod.items.tools.ToolHoe;
  10. import com.skulldarkz.testmod.items.tools.ToolPickaxe;
  11. import com.skulldarkz.testmod.items.tools.ToolSpade;
  12. import com.skulldarkz.testmod.items.tools.ToolSword;
  13. import com.skulldarkz.testmod.util.Reference;
  14.  
  15. import net.minecraft.init.SoundEvents;
  16. import net.minecraft.inventory.EntityEquipmentSlot;
  17. import net.minecraft.item.Item;
  18. import net.minecraft.item.Item.ToolMaterial;
  19. import net.minecraft.item.ItemArmor.ArmorMaterial;
  20. import net.minecraft.item.ItemAxe;
  21. import net.minecraft.item.ItemHoe;
  22. import net.minecraft.item.ItemPickaxe;
  23. import net.minecraft.item.ItemSpade;
  24. import net.minecraft.item.ItemSword;
  25. import net.minecraftforge.common.util.EnumHelper;
  26.  
  27. public class ModItems {
  28.  
  29. public static final List<Item> ITEMS = new ArrayList<Item>();
  30.  
  31. //Materials
  32. public static final ToolMaterial MATERIAL_RUBY = EnumHelper.addToolMaterial("material_ruby", 3, 1500, 10.0f, 3.0f, 14);
  33. public static final ArmorMaterial ARMOR_MATERIAL_RUBY = EnumHelper.addArmorMaterial("armor_material_ruby", Reference.MOD_ID + ":ruby", 14, new int[] {4, 9, 7, 4}, 10, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 0.0f);
  34.  
  35. //Items
  36. public static final Item RUBY = new ItemBase("ruby");
  37. public static final Item IRON_STICK = new ItemBase("iron_stick");
  38. public static final Item DIAMOND_STICK = new ItemBase("diamond_stick");
  39. public static final Item DIAMOND_NUGGET = new ItemBase("diamond_nugget");
  40.  
  41. //Tools
  42. public static final ItemSword RUBY_SWORD = new ToolSword("ruby_sword", MATERIAL_RUBY);
  43. public static final ItemSpade RUBY_SHOVEL = new ToolSpade("ruby_shovel", MATERIAL_RUBY);
  44. public static final ItemPickaxe RUBY_PICKAXE = new ToolPickaxe("ruby_pickaxe", MATERIAL_RUBY);
  45. public static final ItemAxe RUBY_AXE = new ToolAxe("ruby_axe", MATERIAL_RUBY);
  46. public static final ItemHoe RUBY_HOE = new ToolHoe("ruby_hoe", MATERIAL_RUBY);
  47.  
  48. //Armor
  49. public static final Item RUBY_HELMET = new ArmorBase("ruby_helmet", ARMOR_MATERIAL_RUBY, 1, EntityEquipmentSlot.HEAD);
  50. public static final Item RUBY_CHESTPLATE = new ArmorBase("ruby_chestplate", ARMOR_MATERIAL_RUBY, 1, EntityEquipmentSlot.CHEST);
  51. public static final Item RUBY_LEGGINGS = new ArmorBase("ruby_leggings", ARMOR_MATERIAL_RUBY, 2, EntityEquipmentSlot.LEGS);
  52. public static final Item RUBY_BOOTS = new ArmorBase("ruby_boots", ARMOR_MATERIAL_RUBY, 1, EntityEquipmentSlot.FEET);
  53. }
RAW Paste Data