public void tickInInventory()
	{
		if(soundDelay > 0) soundDelay--;
		if(frames[frame] == null) for(int i = 0; i < frames.length; i++) frames[i] = SpriteSheet.getIcon(getSpriteSheet(), (getTexture().x + i), getTexture().y);
		if(Main.key.isMouseLeft && Main.inv.invBar[Main.inv.selection].id == itemID)
		{
			double dx = Main.mouseX - Main.WIDTH / 2;
			double dy = Main.mouseY - Main.HEIGHT / 2;
			dir = Math.atan2(dy, dx);
			frameDelay++;
			if(frameDelay >= 5)
			{
				frameDelay = 0;
				frame++;
				if(frame > frames.length - 1) frame = 0;
			}
			if(soundDelay <= 0)
			{
				SoundSystem.playSound("drill", false);
				soundDelay = 8;
			}
		}
		else
		{
			frame = frameDelay = 0;
			if(SoundSystem.isSoundPlaying("drill")) SoundSystem.stopSound("drill");
		}
	}