@Override
public boolean hitEntity(ItemStack itemstack, EntityLivingBase entity1, EntityLivingBase entity2) {
if(entity1 instanceof EntityZombie) {
entity1.motionY = 1.5;
((EntityPlayer) entity2).addChatMessage(new ChatComponentText("Well done " + ((EntityPlayer) entity2).getDisplayName() + " You go hit them zombies!"));
} else {
((EntityPlayer) entity2).addChatMessage(new ChatComponentText("Oh you dumbo " + ((EntityPlayer) entity2).getDisplayName() + "..you should not hit that!"));
}
return false;
}