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
FieldsModifier and TypeFieldDescriptionprivate static intprivate booleanprivate static TargetingConditionsprivate intprivate Class<?>[]private Class<?>[]Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidalertOther(Mob p_26042_, LivingEntity p_26043_)protected voidbooleancanUse()setAlertOthers(Class<?>... p_26045_)voidstart()Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
HURT_BY_TARGETING
-
ALERT_RANGE_Y
private static final int ALERT_RANGE_Y- See Also:
- Constant Field Values
-
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:
startin classTargetGoal
-
alertOthers
protected void alertOthers() -
alertOther
-