Im currently making a mod where i'm attempting create a class extending ArmorItem that adds a function teleporting any mob that attacks the player a certain distance, however i'm having issues with finding a method that checks if the player has taken damage or been attacked, let alone then checking what attacked them. If anyone could help i would be very thankful.