Fixes #4561 by temporarily storing mob IDs on the charm and applying the brainwashing during the next worn tick.
Fabric damage hook for the charm was also moved to LivingEntity::actuallyHurt for better parity with Forge.
A mob can be charmed if it is not a tamable mob owned by the player, and it is an enemy mob, or a neutral mob that is angry at the player or targeting one of the player's tamed animals.
A mob that is not tamed by the player can become the target of a charmed mob if it is an enemy mob, or it is a neutral mob that is angry at the player or targeting one of the player's tamed animals.
Mobs in a "stack" (e.g. skeleton and spider in a spider jockey) won't target each other.
Fixes #4561 by temporarily storing mob IDs on the charm and applying the brainwashing during the next worn tick. Fabric damage hook for the charm was also moved to LivingEntity::actuallyHurt for better parity with Forge.