SHARE
TWEET

ModItems

SnowyShiro Jul 15th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.snowyshiro.blueiceadditions.init;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. import com.snowyshiro.blueiceadditions.items.Armor.ArmorBase;
  7. import com.snowyshiro.blueiceadditions.items.ItemBase;
  8. import com.snowyshiro.blueiceadditions.items.tools.*;
  9. import com.snowyshiro.blueiceadditions.util.Reference;
  10. import net.minecraft.init.SoundEvents;
  11. import net.minecraft.inventory.EntityEquipmentSlot;
  12. import net.minecraft.item.*;
  13. import net.minecraftforge.common.util.EnumHelper;
  14.  
  15. public class ModItems
  16. {
  17.    
  18.     public static final List<Item> ITEMS = new ArrayList<Item>();
  19.    
  20.     //Materials
  21.     public static final Item.ToolMaterial MATERIAL_ICE = EnumHelper.addToolMaterial("material_ice", 1, 262, 5.0F, 1.0F, 10);
  22.     public static final Item.ToolMaterial MATERIAL_PACKED_ICE = EnumHelper.addToolMaterial("material_packed_ice", 2, 500, 7.0F, 2.0F, 10);
  23.     public static final Item.ToolMaterial MATERIAL_BLUE_ICE = EnumHelper.addToolMaterial("material_blue_ice", 3, 1561, 9.0F, 3.0F, 10);
  24.     public static final ItemArmor.ArmorMaterial ARMOR_MATERIAL_ICE = EnumHelper.addArmorMaterial("armor_material_ice", Reference.MOD_ID + ":ice", 14,
  25.             new int[] {1, 5, 4, 2}, 12, SoundEvents.ITEM_ARMOR_EQUIP_CHAIN, 0.0F);
  26.     public static final ItemArmor.ArmorMaterial ARMOR_MATERIAL_PACKED_ICE = EnumHelper.addArmorMaterial("armor_material_packed_ice", Reference.MOD_ID + ":packed_ice", 14,
  27.             new int[] {2, 6, 5, 2}, 9, SoundEvents.ITEM_ARMOR_EQUIP_IRON, 0.0F);
  28.     public static final ItemArmor.ArmorMaterial ARMOR_MATERIAL_BLUE_ICE = EnumHelper.addArmorMaterial("armor_material_blue_ice", Reference.MOD_ID + ":blue_ice", 14,
  29.             new int[] {3, 8, 6, 3}, 10, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 0.0F);
  30.     //Items
  31.     public static final Item ICE_SHARD = new ItemBase("ice_shard");
  32.     public static final Item PACKED_ICE_SHARD = new ItemBase("packed_ice_shard");
  33.     public static final Item BLUE_ICE_SHARD = new ItemBase("blue_ice_shard");
  34.     //Swords
  35.     public static final ItemSword ICE_SWORD = new ToolSword("ice_sword", MATERIAL_ICE);
  36.     public static final ItemSword PACKED_ICE_SWORD = new ToolSword("packed_ice_sword", MATERIAL_PACKED_ICE);
  37.     public static final ItemSword BLUE_ICE_SWORD = new ToolSword("blue_ice_sword", MATERIAL_BLUE_ICE);
  38.     //Pickaxes
  39.     public static final ItemPickaxe ICE_PICKAXE = new ToolPickaxe("ice_pickaxe", MATERIAL_ICE);
  40.     public static final ItemPickaxe PACKED_ICE_PICKAXE = new ToolPickaxe("packed_ice_pickaxe", MATERIAL_PACKED_ICE);
  41.     public static final ItemPickaxe BLUE_ICE_PICKAXE = new ToolPickaxe("blue_ice_pickaxe", MATERIAL_BLUE_ICE);
  42.     //Axes
  43.     public static final ItemAxe ICE_AXE = new ToolAxe("ice_axe", MATERIAL_ICE);
  44.     public static final ItemAxe PACKED_ICE_AXE = new ToolAxe("packed_ice_axe", MATERIAL_ICE);
  45.     public static final ItemAxe BLUE_ICE_AXE = new ToolAxe("blue_ice_axe", MATERIAL_ICE);
  46.     //Shovels (Spades)
  47.     public static final ItemSpade ICE_SHOVEL = new ToolSpade("ice_shovel", MATERIAL_ICE);
  48.     public static final ItemSpade PACKED_ICE_SHOVEL = new ToolSpade("packed_ice_shovel", MATERIAL_PACKED_ICE);
  49.     public static final ItemSpade BLUE_ICE_SHOVEL = new ToolSpade("blue_ice_shovel", MATERIAL_BLUE_ICE);
  50.     //Hoes
  51.     public static final ItemHoe ICE_HOE = new ToolHoe("ice_hoe", MATERIAL_ICE);
  52.     public static final ItemHoe PACKED_ICE_HOE = new ToolHoe("packed_ice_hoe", MATERIAL_PACKED_ICE);
  53.     public static final ItemHoe BLUE_ICE_HOE = new ToolHoe("blue_ice_hoe", MATERIAL_BLUE_ICE);
  54.     //Helmet
  55.     public static final Item ICE_HELMET = new ArmorBase("ice_helmet", ARMOR_MATERIAL_ICE, 1, EntityEquipmentSlot.HEAD);
  56.     public static final Item PACKED_ICE_HELMET = new ArmorBase("packed_ice_helmet", ARMOR_MATERIAL_PACKED_ICE, 1, EntityEquipmentSlot.HEAD);
  57.     public static final Item BLUE_ICE_HELMET = new ArmorBase("blue_ice_helmet", ARMOR_MATERIAL_BLUE_ICE, 1, EntityEquipmentSlot.HEAD);
  58.     //Chestplate
  59.     public static final Item ICE_CHESTPLATE = new ArmorBase("ice_chestplate", ARMOR_MATERIAL_ICE, 1, EntityEquipmentSlot.CHEST);
  60.     public static final Item PACKED_ICE_CHESTPLATE = new ArmorBase("packed_ice_chestplate", ARMOR_MATERIAL_PACKED_ICE, 1, EntityEquipmentSlot.CHEST);
  61.     public static final Item BLUE_ICE_CHESTPLATE = new ArmorBase("blue_ice_chestplate", ARMOR_MATERIAL_BLUE_ICE, 1, EntityEquipmentSlot.CHEST);
  62.     //Leggings
  63.     public static final Item ICE_LEGGINGS = new ArmorBase("ice_leggings", ARMOR_MATERIAL_ICE, 2, EntityEquipmentSlot.LEGS);
  64.     public static final Item PACKED_ICE_LEGGINGS = new ArmorBase("packed_ice_leggings", ARMOR_MATERIAL_PACKED_ICE, 2, EntityEquipmentSlot.LEGS);
  65.     public static final Item BLUE_ICE_LEGGINGS = new ArmorBase("blue_ice_leggings", ARMOR_MATERIAL_BLUE_ICE, 2, EntityEquipmentSlot.LEGS);
  66.     //Boots
  67.     public static final Item ICE_BOOTS = new ArmorBase("ice_boots", ARMOR_MATERIAL_ICE, 1, EntityEquipmentSlot.FEET);
  68.     public static final Item PACKED_ICE_BOOTS = new ArmorBase("packed_ice_boots", ARMOR_MATERIAL_PACKED_ICE, 1, EntityEquipmentSlot.FEET);
  69.     public static final Item BLUE_ICE_BOOTS = new ArmorBase("blue_ice_boots", ARMOR_MATERIAL_BLUE_ICE, 1, EntityEquipmentSlot.FEET);
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top