Package net.minecraft.entity.ai.goal
Class TrackTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
- Direct Known Subclasses:
AttackWithOwnerGoal
,FollowTargetGoal
,RevengeGoal
,TrackIronGolemTargetGoal
,TrackOwnerAttackerGoal
,TraderLlamaEntity.DefendTraderGoal
,VexEntity.TrackOwnerTargetGoal
public abstract class TrackTargetGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private int
canNavigateFlag
private boolean
checkCanNavigate
private int
checkCanNavigateCooldown
protected boolean
checkVisibility
protected int
maxTimeWithoutVisibility
protected MobEntity
mob
protected LivingEntity
target
private int
timeWithoutVisibility
-
Constructor Summary
Constructors Constructor Description TrackTargetGoal(MobEntity mob, boolean checkVisibility)
TrackTargetGoal(MobEntity mob, boolean checkVisibility, boolean checkNavigable)
-
Method Summary
Modifier and Type Method Description private boolean
canNavigateToEntity(LivingEntity entity)
protected boolean
canTrack(LivingEntity target, TargetPredicate targetPredicate)
protected double
getFollowRange()
TrackTargetGoal
setMaxTimeWithoutVisibility(int time)
boolean
shouldContinue()
void
start()
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStart, canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
-
checkVisibility
protected final boolean checkVisibility -
timeWithoutVisibility
private int timeWithoutVisibility -
target
-
maxTimeWithoutVisibility
protected int maxTimeWithoutVisibility
-
-
Constructor Details
-
TrackTargetGoal
-
TrackTargetGoal
-
-
Method Details