类 HurtByTargetGoal

直接已知子类:
Bee.BeeHurtByOtherGoal, Llama.LlamaHurtByTargetGoal, Panda.PandaHurtByTargetGoal, PolarBear.PolarBearHurtByTargetGoal

public class HurtByTargetGoal extends TargetGoal
  • 字段详细资料

    • HURT_BY_TARGETING

      private static final TargetingConditions HURT_BY_TARGETING
    • ALERT_RANGE_Y

      private static final int ALERT_RANGE_Y
      另请参阅:
    • alertSameType

      private boolean alertSameType
    • timestamp

      private int timestamp
    • toIgnoreDamage

      private final Class<?>[] toIgnoreDamage
    • toIgnoreAlert

      @Nullable private Class<?>[] toIgnoreAlert
  • 构造器详细资料

    • HurtByTargetGoal

      public HurtByTargetGoal(PathfinderMob p_26039_, Class<?>... p_26040_)
  • 方法详细资料

    • canUse

      public boolean canUse()
      指定者:
      canUse 在类中 Goal
    • setAlertOthers

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

      public void start()
      覆盖:
      start 在类中 TargetGoal
    • alertOthers

      protected void alertOthers()
    • alertOther

      protected void alertOther(Mob p_26042_, LivingEntity p_26043_)