net.minecraft.world.entity.ai.behavior

public class SetWalkTargetAwayFrom<T>

extends Behavior<PathfinderMob>

atp
net.minecraft.world.entity.ai.behavior.SetWalkTargetAwayFrom
net.minecraft.class_4121
net.minecraft.entity.ai.brain.task.GoToRememberedPositionTask
net.minecraft.entity.ai.brain.task.RunAwayTask
net.minecraft.server.v1_16_R3.BehaviorWalkAway

Field summary

Modifier and TypeField
private final MemoryModuleType<T>
b
walkAwayFromMemory
field_18380
entityMemory
field_233957_b_
private final float
c
speedModifier
field_18381
speed
field_233958_c_
private final int
d
desiredDistance
field_22321
range
field_233959_d_
private final Function<T, Vec3>
e
toPosition
field_22322
posRetriever
field_233960_e_

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(ayd<fx> 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)
func_233963_a_(MemoryModuleType<BlockPos> arg0, float arg1, int arg2, boolean arg3)
public static SetWalkTargetAwayFrom<? extends Entity>
b(ayd<? extends aqa> 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)
func_233965_b_(MemoryModuleType<? extends Entity> arg0, float arg1, int arg2, boolean arg3)
protected boolean
a(aag arg0, aqu arg1)
checkExtraStartConditions(ServerLevel arg0, PathfinderMob arg1)
method_19002(class_3218 arg0, class_1314 arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
func_212832_a_(ServerWorld arg0, CreatureEntity arg1)
private Vec3
a(aqu arg0)
getPosToAvoid(PathfinderMob arg0)
method_24600(class_1314 arg0)
getPos(PathAwareEntity entity)
func_233961_a_(CreatureEntity arg0)
private boolean
b(aqu arg0)
alreadyWalkingAwayFromPosWithSameSpeed(PathfinderMob arg0)
method_24602(class_1314 arg0)
isWalkTargetPresentAndFar(PathAwareEntity arg0)
func_233964_b_(CreatureEntity arg0)
protected void
a(aag arg0, aqu 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)
func_212831_a_(ServerWorld arg0, CreatureEntity arg1, long arg2)
private static void
a(aqu arg0, dcn 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)
func_233962_a_(CreatureEntity arg0, Vector3d arg1, float arg2)