package ellpeck.someprettytechystuff.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.someprettytechystuff.creative.CreativeTab; import ellpeck.someprettytechystuff.util.Util; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemStack; import java.util.List; public class ItemPickaxeSPTS extends ItemPickaxe{ public ItemPickaxeSPTS(ToolMaterial toolMat, String unlocalizedName){ super(toolMat); this.setUnlocalizedName(unlocalizedName); this.setCreativeTab(CreativeTab.instance); } @SuppressWarnings("unchecked") @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean isHeld) { Util.addStandardInformation(this); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconReg){ this.itemIcon = iconReg.registerIcon(Util.MOD_ID + ":" + this.getUnlocalizedName().substring(5)); } }