| 
					
				 | 
			
			
				@@ -1,7 +1,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package me.km.items; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import me.km.items.noglint.ItemNoGlintPotion; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import me.km.KajetansMod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import me.km.blocks.EnumMetals; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import me.km.items.noglint.ItemNoGlintLingeringPotion; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import me.km.items.noglint.ItemNoGlintSplashPotion; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import me.km.sounds.Sounds; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import net.minecraft.creativetab.CreativeTabs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import net.minecraft.init.Items; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import net.minecraft.init.SoundEvents; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -34,7 +38,7 @@ public class ModItems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static final Item.ToolMaterial TOOL_REDSTONE =  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EnumHelper.addToolMaterial("REDSTONE", 0,   59, 1,    0, 22); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static final Item.ToolMaterial TOOL_SILVER =  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EnumHelper.addToolMaterial("SILVER",   0,  250, 5,    2, 20); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            EnumHelper.addToolMaterial("SILVER",   2,  250, 5,    2, 20); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static final Item.ToolMaterial TOOL_EMERALD =  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             EnumHelper.addToolMaterial("EMERALD",  0, 1248, 7, 2.5f, 10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static final Item.ToolMaterial TOOL_LAPIS =  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -149,6 +153,24 @@ public class ModItems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static ItemHammer goldHammer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static ItemHammer diamondHammer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // guns 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemBase revolverBullet; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemBase musketAmmunition; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemGun ironMusket; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemGun silverMusket; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemGun ironRevolver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemGun silverRevolver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //public static ItemKey woodenKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemKey silverKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemKey copperKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemKey bronzeKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemKey ironKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static ItemKey goldKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    //public static ItemKey diamondKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // coins 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static ItemBase copperCoin; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static ItemBase silverCoin; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -257,6 +279,32 @@ public class ModItems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goldHammer = register(r, new ItemHammer("gold_hammer", "hammerGold", Item.ToolMaterial.GOLD)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         diamondHammer = register(r, new ItemHammer("diamond_hammer", "hammerDiamond", Item.ToolMaterial.DIAMOND)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // guns 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        musketAmmunition = register(r, new ItemBase("musket_ammunition", "musketAmmunition").setCreativeTab(CreativeTabs.COMBAT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        revolverBullet = register(r, new ItemBase("revolver_bullet", "revolverBullet").setCreativeTab(CreativeTabs.COMBAT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ironMusket = register(r, new ItemGun("iron_musket", "musketIron",  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Item.ToolMaterial.IRON, 312, musketAmmunition, 12, 0.2d, 80, 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Sounds.MUSKET_SHOT, Sounds.MUSKET_RELOAD, Sounds.MUSKET_CRIT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        silverMusket = register(r, new ItemGun("silver_musket", "musketSilver",  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                TOOL_SILVER, 504, musketAmmunition, 12, 0.2d, 80, 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Sounds.MUSKET_SHOT, Sounds.MUSKET_RELOAD, Sounds.MUSKET_CRIT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ironRevolver = register(r, new ItemGun("iron_revolver", "revolverIron",  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Item.ToolMaterial.IRON, 384, revolverBullet, 5, 20, 6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Sounds.REVOLVER_SHOT, Sounds.REVOLVER_RELOAD, Sounds.REVOLVER_CRIT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        silverRevolver = register(r, new ItemGun("silver_revolver", "revolverSilver",  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                TOOL_SILVER, 600, revolverBullet, 5, 20, 6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Sounds.REVOLVER_SHOT, Sounds.REVOLVER_RELOAD, Sounds.REVOLVER_CRIT)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // key 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //woodenKey = register(r, new ItemKey("wood_key", "keyWood", Item.ToolMaterial.WOOD)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        silverKey = register(r, new ItemKey("silver_key", "keySilver", TOOL_SILVER)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        copperKey = register(r, new ItemKey("copper_key", "keyCopper", TOOL_COPPER)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        bronzeKey = register(r, new ItemKey("bronze_key", "keyBronze", TOOL_BRONZE)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ironKey = register(r, new ItemKey("iron_key", "keyIron", Item.ToolMaterial.IRON)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goldKey = register(r, new ItemKey("gold_key", "keyGold", Item.ToolMaterial.GOLD)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //diamondKey = register(r, new ItemKey("diamond_key", "keyDiamond", Item.ToolMaterial.DIAMOND)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // coins 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         copperCoin = register(r, new ItemBase("coin_copper", "coinCopper").setCreativeTab(CreativeTabs.MISC)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         silverCoin = register(r, new ItemBase("coin_silver", "coinSilver").setCreativeTab(CreativeTabs.MISC)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -270,9 +318,37 @@ public class ModItems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         wolfFur = register(r, new ItemBase("wolf_fur", "wolfFur").setCreativeTab(CreativeTabs.MATERIALS)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        try 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for(int i = 0; i < 10; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                System.out.println("DOING EVIL SHIT"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            register(r, Items.POTIONITEM, new ItemNoGlintPotion()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            register(r, Items.SPLASH_POTION, new ItemNoGlintSplashPotion()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            register(r, Items.LINGERING_POTION, new ItemNoGlintLingeringPotion()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for(int i = 0; i < 10; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                System.out.println("DONE WITH EVIL SHIT"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        catch(Exception ex) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ex.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // workaround 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         EnumMetals.fixMetalIngots(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public static void fixSounds() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ironMusket.fixSounds(Sounds.MUSKET_SHOT, Sounds.MUSKET_RELOAD, Sounds.MUSKET_CRIT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        silverMusket.fixSounds(Sounds.MUSKET_SHOT, Sounds.MUSKET_RELOAD, Sounds.MUSKET_CRIT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ironRevolver.fixSounds(Sounds.REVOLVER_SHOT, Sounds.REVOLVER_RELOAD, Sounds.REVOLVER_CRIT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        silverRevolver.fixSounds(Sounds.REVOLVER_SHOT, Sounds.REVOLVER_RELOAD, Sounds.REVOLVER_CRIT); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static <T extends Item> T register(IForgeRegistry<Item> r, T item)  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -283,4 +359,10 @@ public class ModItems 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private static void register(IForgeRegistry<Item> r, Item old, Item newItem)  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        newItem.setRegistryName(old.getRegistryName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        r.register(newItem); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |