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
FieldsModifier and TypeFieldDescriptionprivate static intprivate static intprivate static intprotected Mobprivate booleanprotected booleanprivate intprivate intprotected LivingEntityprotected intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionTargetGoal(Mob p_26140_, boolean p_26141_)TargetGoal(Mob p_26143_, boolean p_26144_, boolean p_26145_) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAttack(LivingEntity p_26151_, TargetingConditions p_26152_)booleanprivate booleancanReach(LivingEntity p_26149_)protected doublesetUnseenMemoryTicks(int p_26147_)voidstart()voidstop()
-
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