code: public static boolean isEquipped(EntityPlayer player, Item item, EnumHand hand)
  	{
  		return player != null && player.getHeldItem(hand) != null && player.getHeldItem(hand).getItem() == item;
  	}
docs: Checks if is the {@link Item} is equipped for the player.
  
  @param player the player
  @param item the item
  @return true, if is equipped