net.minecraft.world.entity.ai.behavior

public class StayCloseToTarget<E extends LivingEntity>

extends Behavior<E>

bfg
net.minecraft.world.entity.ai.behavior.StayCloseToTarget
net.minecraft.class_7297
net.minecraft.entity.ai.brain.task.WalkTowardsLookTargetTask
net.minecraft.src.C_213015_
net.minecraft.world.entity.ai.behavior.StayCloseToTarget

Field summary

Modifier and TypeField
private final Function<LivingEntity, Optional<PositionTracker>>
a
targetPositionGetter
field_38391
lookTargetFunction
f_217381_
private final int
d
closeEnough
field_38392
completionRange
f_217382_
private final int
e
tooFar
field_38933
searchRange
f_217383_
private final float
f
speedModifier
field_38393
speed
f_217384_

Constructor summary

ModifierConstructor
public (Function<LivingEntity, Optional<PositionTracker>> lookTargetFunction, int completionRange, int searchRange, float speed)

Method summary

Modifier and TypeMethod
protected boolean
a(afo arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_217392_, E arg1)
protected void
a(afo arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_217395_, E p_217396_, long arg2)