Class HurtByTargetGoal

Direct Known Subclasses:
BeeEntity.AngerGoal, LlamaEntity.HurtByTargetGoal, PandaEntity.RevengeGoal, PolarBearEntity.HurtByTargetGoal

public class HurtByTargetGoal extends TargetGoal
  • Field Details

    • HURT_BY_TARGETING

      private static final EntityPredicate HURT_BY_TARGETING
    • alertSameType

      private boolean alertSameType
    • timestamp

      private int timestamp
    • toIgnoreDamage

      private final Class<?>[] toIgnoreDamage
    • toIgnoreAlert

      private Class<?>[] toIgnoreAlert
  • Constructor Details

    • HurtByTargetGoal

      public HurtByTargetGoal(CreatureEntity p_i50317_1_, Class<?>... p_i50317_2_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • setAlertOthers

      public HurtByTargetGoal setAlertOthers(Class<?>... p_220794_1_)
    • start

      public void start()
      Overrides:
      start in class TargetGoal
    • alertOthers

      protected void alertOthers()
    • alertOther

      protected void alertOther(MobEntity p_220793_1_, LivingEntity p_220793_2_)