Package net.minecraft.entity.ai.goal
Class TargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
- Direct Known Subclasses:
DefendVillageTargetGoal
,HurtByTargetGoal
,NearestAttackableTargetGoal
,OwnerHurtByTargetGoal
,OwnerHurtTargetGoal
,TraderLlamaEntity.FollowTraderGoal
,VexEntity.CopyOwnerTargetGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final MobEntity
private final boolean
protected final boolean
private int
private int
protected LivingEntity
protected int
private int
-
Constructor Summary
ConstructorDescriptionTargetGoal
(MobEntity p_i50308_1_, boolean p_i50308_2_) TargetGoal
(MobEntity p_i50309_1_, boolean p_i50309_2_, boolean p_i50309_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canAttack
(LivingEntity p_220777_1_, EntityPredicate p_220777_2_) boolean
private boolean
canReach
(LivingEntity p_75295_1_) protected double
setUnseenMemoryTicks
(int p_190882_1_) void
start()
void
stop()
-
Field Details
-
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