Class HurtByTargetGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal
- Direct Known Subclasses:
Bee.BeeHurtByOtherGoal
,Llama.LlamaHurtByTargetGoal
,Panda.PandaHurtByTargetGoal
,PolarBear.PolarBearHurtByTargetGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private boolean
private static final TargetingConditions
private int
private Class<?>[]
private final Class<?>[]
Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
alertOther
(Mob p_26042_, LivingEntity p_26043_) protected void
boolean
canUse()
setAlertOthers
(Class<?>... p_26045_) void
start()
Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
HURT_BY_TARGETING
-
ALERT_RANGE_Y
private static final int ALERT_RANGE_Y- See Also:
-
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
-