Package net.minecraft.entity.ai.goal
Class HurtByTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.HurtByTargetGoal
- Direct Known Subclasses:
BeeEntity.AngerGoal
,LlamaEntity.HurtByTargetGoal
,PandaEntity.RevengeGoal
,PolarBearEntity.HurtByTargetGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final EntityPredicate
private int
private Class<?>[]
private final Class<?>[]
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
alertOther
(MobEntity p_220793_1_, LivingEntity p_220793_2_) protected void
boolean
canUse()
setAlertOthers
(Class<?>... p_220794_1_) void
start()
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
HURT_BY_TARGETING
-
alertSameType
private boolean alertSameType -
timestamp
private int timestamp -
toIgnoreDamage
-
toIgnoreAlert
-
-
Constructor Details
-
HurtByTargetGoal
-
-
Method Details
-
canUse
public boolean canUse() -
setAlertOthers
-
start
public void start()- Overrides:
start
in classTargetGoal
-
alertOthers
protected void alertOthers() -
alertOther
-