Class TargetGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
- Direct Known Subclasses:
DefendVillageTargetGoal
,HurtByTargetGoal
,NearestAttackableTargetGoal
,OwnerHurtByTargetGoal
,OwnerHurtTargetGoal
,TraderLlama.TraderLlamaDefendWanderingTraderGoal
,Vex.VexCopyOwnerTargetGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private static int
protected Mob
private boolean
protected boolean
private int
private int
protected LivingEntity
protected int
private int
-
Constructor Summary
ConstructorDescriptionTargetGoal(Mob p_26140_, boolean p_26141_)
TargetGoal(Mob p_26143_, boolean p_26144_, boolean p_26145_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canAttack(LivingEntity p_26151_, TargetingConditions p_26152_)
boolean
private boolean
canReach(LivingEntity p_26149_)
protected double
setUnseenMemoryTicks(int p_26147_)
void
start()
void
stop()
-
Field Details
-
EMPTY_REACH_CACHE
private static final int EMPTY_REACH_CACHE- See Also:
- Constant Field Values
-
CAN_REACH_CACHE
private static final int CAN_REACH_CACHE- See Also:
- Constant Field Values
-
CANT_REACH_CACHE
private static final int CANT_REACH_CACHE- See Also:
- Constant Field Values
-
mob
-
mustSee
protected final boolean mustSee -
mustReach
private final boolean mustReach -
reachCache
private int reachCache -
reachCacheTime
private int reachCacheTime -
unseenTicks
private int unseenTicks -
targetMob
-
unseenMemoryTicks
protected int unseenMemoryTicks
-
-
Constructor Details
-
TargetGoal
-
TargetGoal
-
-
Method Details