Class ResetAngerGoal<T extends MobEntity & IAngerable>

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.ResetAngerGoal<T>

public class ResetAngerGoal<T extends MobEntity & IAngerable> extends Goal
  • Field Details

    • mob

      private final T extends MobEntity & IAngerable mob
    • alertOthersOfSameType

      private final boolean alertOthersOfSameType
    • lastHurtByPlayerTimestamp

      private int lastHurtByPlayerTimestamp
  • Constructor Details

    • ResetAngerGoal

      public ResetAngerGoal(T p_i241234_1_, boolean p_i241234_2_)
  • 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<MobEntity> getNearbyMobsOfSameType()