net.minecraft.world.entity.ai.behavior

public class SetWalkTargetAwayFrom<T>

extends Behavior<PathfinderMob>

bau
net.minecraft.world.entity.ai.behavior.SetWalkTargetAwayFrom
net.minecraft.class_4121
net.minecraft.entity.ai.brain.task.GoToRememberedPositionTask
net.minecraft.src.C_626_
net.minecraft.world.entity.ai.behavior.BehaviorWalkAway

Field summary

Modifier and TypeField
private final MemoryModuleType<T>
a
walkAwayFromMemory
field_18380
entityMemory
f_23982_
private final float
c
speedModifier
field_18381
speed
f_23983_
private final int
d
desiredDistance
field_22321
range
f_23984_
private final Function<T, Vec3>
e
toPosition
field_22322
posRetriever
f_23985_

Constructor summary

ModifierConstructor
public (MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3> posRetriever)

Method summary

Modifier and TypeMethod
public static SetWalkTargetAwayFrom<BlockPos>
a(bfg<gh> arg0, float arg1, int arg2, boolean arg3)
pos(MemoryModuleType<BlockPos> arg0, float arg1, int arg2, boolean arg3)
method_24601(class_4140<class_2338> arg0, float arg1, int arg2, boolean arg3)
toBlock(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget)
m_24012_(C_753_<C_4675_> p_24013_, float p_24014_, int p_24015_, boolean p_24016_)
public static SetWalkTargetAwayFrom<? extends Entity>
b(bfg<? extends awt> arg0, float arg1, int arg2, boolean arg3)
entity(MemoryModuleType<? extends Entity> arg0, float arg1, int arg2, boolean arg3)
method_24603(class_4140<? extends class_1297> arg0, float arg1, int arg2, boolean arg3)
toEntity(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget)
m_24019_(C_753_<? extends C_507_> p_24020_, float p_24021_, int p_24022_, boolean p_24023_)
protected boolean
a(adi arg0, axq arg1)
checkExtraStartConditions(ServerLevel arg0, PathfinderMob arg1)
method_19002(class_3218 arg0, class_1314 arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
m_6114_(C_12_ p_24001_, C_533_ arg1)
private Vec3
a(axq arg0)
getPosToAvoid(PathfinderMob arg0)
method_24600(class_1314 arg0)
getPos(PathAwareEntity entity)
m_24006_(C_533_ arg0)
private boolean
b(axq arg0)
alreadyWalkingAwayFromPosWithSameSpeed(PathfinderMob arg0)
method_24602(class_1314 arg0)
isWalkTargetPresentAndFar(PathAwareEntity entity)
m_24017_(C_533_ arg0)
protected void
a(adi arg0, axq arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_19003(class_3218 arg0, class_1314 arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6735_(C_12_ p_24004_, C_533_ p_24005_, long arg2)
private static void
a(axq arg0, dom arg1, float arg2)
moveAwayFrom(PathfinderMob arg0, Vec3 arg1, float arg2)
method_19596(class_1314 arg0, class_243 arg1, float arg2)
setWalkTarget(PathAwareEntity entity, Vec3d pos, float speed)
m_24008_(C_533_ p_24009_, C_3046_ p_24010_, float p_24011_)