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 final int
private static final int
private static final int
protected final Mob
private final boolean
protected final 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()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canUse, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
EMPTY_REACH_CACHE
private static final int EMPTY_REACH_CACHE- See Also:
-
CAN_REACH_CACHE
private static final int CAN_REACH_CACHE- See Also:
-
CANT_REACH_CACHE
private static final int CANT_REACH_CACHE- See Also:
-
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