Package net.minecraft.entity.ai.goal
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 Summary
Fields Modifier and Type Field Description private boolean
alertOthersOfSameType
private int
lastHurtByPlayerTimestamp
private T
mob
-
Constructor Summary
Constructors Constructor Description ResetAngerGoal(T p_i241234_1_, boolean p_i241234_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
private java.util.List<MobEntity>
getNearbyMobsOfSameType()
void
start()
private boolean
wasHurtByPlayer()
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canContinueToUse, getFlags, isInterruptable, setFlags, stop, tick, toString
-
-
-
-
Field Detail
-
mob
private final T extends MobEntity & IAngerable mob
-
alertOthersOfSameType
private final boolean alertOthersOfSameType
-
lastHurtByPlayerTimestamp
private int lastHurtByPlayerTimestamp
-
-
Constructor Detail
-
ResetAngerGoal
public ResetAngerGoal(T p_i241234_1_, boolean p_i241234_2_)
-
-