类 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
- 直接已知子类:
Bee.BeeHurtByOtherGoal
,Llama.LlamaHurtByTargetGoal
,Panda.PandaHurtByTargetGoal
,PolarBear.PolarBearHurtByTargetGoal
-
嵌套类概要
-
字段概要
字段修饰符和类型字段说明private static final int
private boolean
private static final TargetingConditions
private int
private Class<?>[]
private final Class<?>[]
从类继承的字段 net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
alertOther
(Mob p_26042_, LivingEntity p_26043_) protected void
boolean
canUse()
setAlertOthers
(Class<?>... p_26045_) void
start()
从类继承的方法 net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
字段详细资料
-
HURT_BY_TARGETING
-
ALERT_RANGE_Y
private static final int ALERT_RANGE_Y- 另请参阅:
-
alertSameType
private boolean alertSameType -
timestamp
private int timestamp -
toIgnoreDamage
-
toIgnoreAlert
-
-
构造器详细资料
-
HurtByTargetGoal
-
-
方法详细资料
-
canUse
public boolean canUse() -
setAlertOthers
-
start
public void start()- 覆盖:
start
在类中TargetGoal
-
alertOthers
protected void alertOthers() -
alertOther
-