Class HurtByTargetGoal

Direct Known Subclasses:
Bee.BeeHurtByOtherGoal, Llama.LlamaHurtByTargetGoal, Panda.PandaHurtByTargetGoal, PolarBear.PolarBearHurtByTargetGoal

public class HurtByTargetGoal extends TargetGoal
  • Field Details

    • HURT_BY_TARGETING

      private static final TargetingConditions HURT_BY_TARGETING
    • ALERT_RANGE_Y

      private static final int ALERT_RANGE_Y
      See Also:
      Constant Field Values
    • alertSameType

      private boolean alertSameType
    • timestamp

      private int timestamp
    • toIgnoreDamage

      private final Class<?>[] toIgnoreDamage
    • toIgnoreAlert

      private Class<?>[] toIgnoreAlert
  • Constructor Details

    • HurtByTargetGoal

      public HurtByTargetGoal(PathfinderMob p_26039_, Class<?>... p_26040_)
  • Method Details

    • canUse

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

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

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

      protected void alertOthers()
    • alertOther

      protected void alertOther(Mob p_26042_, LivingEntity p_26043_)