net.minecraft.entity.ai.goal

public abstract class TrackTargetGoal

extends Goal

net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.class_1405
net.minecraft.entity.ai.goal.TrackTargetGoal

Field summary

Modifier and TypeField
private static final int
EMPTY_REACH_CACHE
field_30233
UNSET
private static final int
CAN_REACH_CACHE
field_30234
CAN_TRACK
private static final int
CANT_REACH_CACHE
field_30235
CANNOT_TRACK
protected final MobEntity
mob
field_6660
mob
protected final boolean
mustSee
field_6658
checkVisibility
private final boolean
mustReach
field_6663
checkCanNavigate
private int
reachCache
field_6662
canNavigateFlag
private int
reachCacheTime
field_6661
checkCanNavigateCooldown
private int
unseenTicks
field_6659
timeWithoutVisibility
protected LivingEntity
targetMob
field_6664
target
protected int
unseenMemoryTicks
field_6657
maxTimeWithoutVisibility

Constructor summary

ModifierConstructor
public (MobEntity mob, boolean checkVisibility)
public (MobEntity mob, boolean checkVisibility, boolean checkNavigable)

Method summary

Modifier and TypeMethod
public boolean
canContinueToUse()
method_6266()
shouldContinue()
protected double
getFollowDistance()
method_6326()
getFollowRange()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
protected boolean
canAttack(LivingEntity target, TargetingConditions targetConditions)
method_6328(class_1309 arg0, class_4051 arg1)
canTrack(LivingEntity target, TargetPredicate targetPredicate)
private boolean
canReach(LivingEntity target)
method_6329(class_1309 arg0)
canNavigateToEntity(LivingEntity entity)
public TrackTargetGoal
setUnseenMemoryTicks(int unseenMemoryTicks)
method_6330(int arg0)
setMaxTimeWithoutVisibility(int time)