As of now this is what I got:  
	 
	Code using the interactingLivingEntity method:
 
	 
 
	        public ActionResultType interactLivingEntity(ItemStack itmStack, PlayerEntity playerEntity, WolfEntity wolf, Hand hand) { 
	                 
	            itmStack = playerEntity.getItemInHand(hand); 
	            wolf = (WolfEntity) playerEntity.getEntity(); 
	            if (wolf instanceof WolfEntity) { 
	                if (wolf.isTame() && wolf.getOwner() == playerEntity) { 
	                    wolf.getAttribute(Attributes.MAX_HEALTH).setBaseValue(wolf.getHealth() + 2); 
	                    if (!playerEntity.isCreative()) { 
	                        itmStack.shrink(1); 
	                        return super.interactLivingEntity(itmStack, playerEntity, wolf, hand); 
	                    } 
	                } 
	            } 
	            return super.interactLivingEntity(itmStack, playerEntity, wolf, hand); 
	            }