--- a/net/minecraft/world/entity/IEntityAngerable.java +++ b/net/minecraft/world/entity/IEntityAngerable.java @@ -114,7 +114,7 @@ default void stopBeingAngry() { this.setLastHurtByMob((EntityLiving) null); this.setPersistentAngerTarget((UUID) null); - this.setTarget((EntityLiving) null); + this.setTarget((EntityLiving) null, org.bukkit.event.entity.EntityTargetEvent.TargetReason.FORGOT_TARGET, true); // CraftBukkit this.setRemainingPersistentAngerTime(0); } @@ -127,6 +127,8 @@ void setTarget(@Nullable EntityLiving entityliving); + boolean setTarget(@Nullable EntityLiving entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason reason, boolean fireEvent); // CraftBukkit + boolean canAttack(EntityLiving entityliving); @Nullable