Advertisement
WitherDoggie

Item Class

May 14th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.89 KB | None | 0 0
  1. package com.wither.withermod.items;
  2.  
  3. import com.wither.withermod.Main;
  4. import com.wither.withermod.blocks.BlockRegistry;
  5. import com.wither.withermod.items.armor.GariumArmor;
  6. import com.wither.withermod.items.crops.ModItemSeeds;
  7. import com.wither.withermod.items.food.ModItemFood;
  8. import com.wither.withermod.items.tools.GariumAxe;
  9. import com.wither.withermod.items.tools.GariumHoe;
  10. import com.wither.withermod.items.tools.GariumPickaxe;
  11. import com.wither.withermod.items.tools.GariumSpade;
  12. import com.wither.withermod.items.tools.GariumSword;
  13.  
  14. import net.minecraft.client.Minecraft;
  15. import net.minecraft.client.resources.model.ModelResourceLocation;
  16. import net.minecraft.creativetab.CreativeTabs;
  17. import net.minecraft.init.Blocks;
  18. import net.minecraft.item.Item;
  19. import net.minecraftforge.fml.common.registry.GameRegistry;
  20.  
  21. public class ItemRegistry {
  22.  
  23.     //Gems & Ingots
  24.     public static ModItem Garium;
  25.     public static ModItem Radium;
  26.    
  27.     //Tools
  28.     public static Item gariumPickaxe;
  29.     public static Item gariumAxe;
  30.     public static Item gariumSpade;
  31.     public static Item gariumSword;
  32.     public static Item gariumHoe;
  33.    
  34.     //Armor
  35.     public static Item gariumHelmet;
  36.     public static Item gariumChestplate;
  37.     public static Item gariumLeggings;
  38.     public static Item gariumBoots;
  39.    
  40.     //Crops
  41.     public static Item cornSeeds;
  42.    
  43.     //Food
  44.     public static Item cornFood;
  45.    
  46.     public static void registerItems(){
  47.        
  48.         ItemRegistry.Garium = new ModItem("garium", CreativeTabs.tabMaterials, 64);
  49.         ItemRegistry.Radium = new ModItem("radium", CreativeTabs.tabMaterials, 64);
  50.        
  51.         //Tools
  52.         GameRegistry.registerItem(gariumPickaxe = new GariumPickaxe("gariumPickaxe", Materials.GariumTools), "gariumPickaxe");
  53.         GameRegistry.registerItem(gariumAxe = new GariumAxe("gariumAxe", Materials.GariumTools), "gariumAxe");
  54.         GameRegistry.registerItem(gariumSpade = new GariumSpade("gariumSpade", Materials.GariumTools), "gariumSpade");
  55.         GameRegistry.registerItem(gariumSword = new GariumSword("gariumSword", Materials.GariumTools), "gariumSword");
  56.         GameRegistry.registerItem(gariumHoe = new GariumHoe("gariumHoe", Materials.GariumTools), "gariumHoe");
  57.        
  58.        
  59.         //Armor
  60.         GameRegistry.registerItem(gariumHelmet = new GariumArmor("gariumHelmet", Materials.GariumArmor, 1, 0), "gariumHelmet");
  61.         GameRegistry.registerItem(gariumChestplate = new GariumArmor("gariumChestplate", Materials.GariumArmor, 1, 1),              "gariumChestplate");
  62.         GameRegistry.registerItem(gariumLeggings = new GariumArmor("gariumLeggings", Materials.GariumArmor, 2, 2), "gariumLeggings");
  63.         GameRegistry.registerItem(gariumBoots = new GariumArmor("gariumBoots", Materials.GariumArmor, 4, 3), "gariumBoots");
  64.        
  65.         //Food
  66.         GameRegistry.registerItem(cornFood = new ModItemFood("cornFood", 4, 0.4f, false), "cornFood");
  67.        
  68.         //Crops
  69.         GameRegistry.registerItem(cornSeeds = new ModItemSeeds(BlockRegistry.cornPlant, Blocks.farmland, "cornSeeds"), "cornSeeds");       
  70.     }  
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement