public void renderItem(Graphics g, Entity entity, Item item)
	{
		if(item instanceof ItemSword || item instanceof ItemBow && entity != null)
		{
			float r = entity.getBB(entity.getCoords()).getBoundingCircleRadius();
			Vector2f looking = entity.getLooking().copy().normalise().scale(r);
			int n = ((int)((item.getTextures().length - 1) *( 1 - (entity.lastAttackTimer / ((ItemWeapon)item).getAttackDelay()))));
			
			
			if(entity.lastAttackTimer / ((ItemWeapon)item).getAttackDelay() <= 0)
				n = 0;
			
			if(n < 0)
				n = 0;
			Image img = item.getTextures()[n].copy();
			Shape bb = null;
			if(item instanceof ItemSword)
				bb = ((ItemSword) item).bb;
			else if (item instanceof ItemBow)
				bb = ((ItemBow) item).bb;
				
			
			img.rotate((float) entity.getLooking().getTheta());
			
			g.drawImage(img, entity.getCenterCoords().copy().getX() - 
					bb.getCenterX() + looking.copy().getX() + looking.copy().getPerpendicular().getX()  - cLoc.x + cameraWidth / 2, 
					entity.getCenterCoords().copy().getY() - 
					bb.getCenterY() + looking.copy().getY() + looking.copy().getPerpendicular().getY() - cLoc.y + cameraHeight / 2);
		}
		else
		{
			float r = entity.getBB(entity.getCoords()).getBoundingCircleRadius();
			Vector2f looking = entity.getLooking().copy().normalise().scale(r);
			Image img = item.getTextures()[0].copy();
			Shape bb = new Rectangle(0, 0, img.getWidth(), img.getHeight());
				
			
			img.rotate((float) entity.getLooking().getTheta());
			
			g.drawImage(img, entity.getCenterCoords().copy().getX() - 
					bb.getCenterX() + looking.copy().getX() + looking.copy().getPerpendicular().getX()  - cLoc.x + cameraWidth / 2, 
					entity.getCenterCoords().copy().getY() - 
					bb.getCenterY() + looking.copy().getY() + looking.copy().getPerpendicular().getY() - cLoc.y + cameraHeight / 2);
		}
	}