Class ResetUniversalAngerTargetGoal<T extends Mob & NeutralMob>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.ResetUniversalAngerTargetGoal<T>

public class ResetUniversalAngerTargetGoal<T extends Mob & NeutralMob> extends Goal
  • Field Details

    • ALERT_RANGE_Y

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

      private final T extends Mob & NeutralMob mob
    • alertOthersOfSameType

      private final boolean alertOthersOfSameType
    • lastHurtByPlayerTimestamp

      private int lastHurtByPlayerTimestamp
  • Constructor Details

    • ResetUniversalAngerTargetGoal

      public ResetUniversalAngerTargetGoal(T p_26121_, boolean p_26122_)
  • Method Details

    • canUse

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

      private boolean wasHurtByPlayer()
    • start

      public void start()
      Overrides:
      start in class Goal
    • getNearbyMobsOfSameType

      private List<? extends Mob> getNearbyMobsOfSameType()