O3Bubbles09

Untitled

Mar 18th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. package O3Bubbles09.Common;
  2.  
  3. import cpw.mods.fml.relauncher.Side;
  4. import cpw.mods.fml.relauncher.SideOnly;
  5. import net.minecraft.client.renderer.texture.IconRegister;
  6. import net.minecraft.item.EnumToolMaterial;
  7. import net.minecraft.item.ItemPickaxe;
  8.  
  9. public class ItemModPick extends ItemPickaxe {
  10.     O3Bubbles09 bubs;
  11.  
  12.     public ItemModPick(int id, EnumToolMaterial ETM) {
  13.         super(id, ETM);
  14.         this.setCreativeTab(bubs.MoreTools);
  15.         this.setMaxDamage(uses);
  16.     }
  17.  
  18.     public static int uses = 100;
  19.  
  20.     @SideOnly(Side.CLIENT)
  21.     public void func_94245_a(IconRegister icon) {
  22.         if(this.itemID == bubs.copperPick.itemID) {
  23.             this.iconIndex = icon.func_94245_a("MoreTools:copperPick");
  24.         }else if(this.itemID == bubs.kunzitePick.itemID) {
  25.             this.iconIndex = icon.func_94245_a("MoreTools:kunzitePick");
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment