net.minecraft.world.entity.ai.goal.target

public abstract class TargetGoal

extends Goal

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

Field summary

Modifier and TypeField
private static final int
a
EMPTY_REACH_CACHE
field_30233
UNSET
private static final int
b
CAN_REACH_CACHE
field_30234
CAN_TRACK
private static final int
c
CANT_REACH_CACHE
field_30235
CANNOT_TRACK
protected final Mob
e
mob
field_6660
mob
protected final boolean
f
mustSee
field_6658
checkVisibility
private final boolean
d
mustReach
field_6663
checkCanNavigate
private int
i
reachCache
field_6662
canNavigateFlag
private int
j
reachCacheTime
field_6661
checkCanNavigateCooldown
private int
k
unseenTicks
field_6659
timeWithoutVisibility
protected LivingEntity
g
targetMob
field_6664
target
protected int
h
unseenMemoryTicks
field_6657
maxTimeWithoutVisibility

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
protected double
l()
getFollowDistance()
method_6326()
getFollowRange()
public void
d()
start()
method_6269()
start()
public void
e()
stop()
method_6270()
stop()
protected boolean
a(bwg arg0, cgx arg1)
canAttack(LivingEntity arg0, TargetingConditions arg1)
method_6328(class_1309 arg0, class_4051 arg1)
canTrack(LivingEntity target, TargetPredicate targetPredicate)
private boolean
a(bwg arg0)
canReach(LivingEntity arg0)
method_6329(class_1309 arg0)
canNavigateToEntity(LivingEntity entity)
public TargetGoal
c(int arg0)
setUnseenMemoryTicks(int arg0)
method_6330(int arg0)
setMaxTimeWithoutVisibility(int time)