net.minecraft.world.entity.ai.behavior

public class StayCloseToTarget<E extends LivingEntity>

extends Behavior<E>

bgd
net.minecraft.world.entity.ai.behavior.StayCloseToTarget
net.minecraft.class_7297
net.minecraft.unmapped.C_xwbaenjp
net.minecraft.entity.ai.brain.task.WalkTowardsLookTargetTask
net.minecraft.entity.ai.brain.task.StayCloseToTargetTask
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
f_tgpvzaov
lookTargetFunction
targetPositionGetter
f_217381_
private final int
d
closeEnough
field_38392
f_tjnvchuh
completionRange
requiredDistanceToTarget
f_217382_
private final int
e
tooFar
field_38933
f_wduhcxfw
searchRange
f_217383_
private final float
f
speedModifier
field_38393
f_foxifxbl
speed
speedModifier
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(agg arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
m_pwowjghk(C_bdwnwhiu arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_217392_, E arg1)
protected void
a(agg arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
m_thxoqxcz(C_bdwnwhiu arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_217395_, E p_217396_, long arg2)