LivingSetAttackTargetEvent is fired when an Entity sets a target to attack.
This event is fired whenever an Entity sets a target to attack in
EntityLiving#setAttackTarget(EntityLivingBase)
and
EntityLivingBase#setRevengeTarget(EntityLivingBase)
.
This event is fired via the
ForgeHooks#onLivingSetAttackTarget(EntityLivingBase, EntityLivingBase)
.
target
contains the newly targeted Entity.
This event is not
Cancelable
.
This event does not have a result.
HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.