net.minecraft.world.entity.ai.behavior

public class AnimalPanic

extends Behavior<PathfinderMob>

All mapped superinterfaces:

BehaviorControl

bks
net.minecraft.world.entity.ai.behavior.AnimalPanic
net.minecraft.class_6028
net.minecraft.unmapped.C_uuyjertq
net.minecraft.entity.ai.brain.task.FleeTask
net.minecraft.entity.ai.brain.task.WalkTask
net.minecraft.src.C_141078_
net.minecraft.world.entity.ai.behavior.AnimalPanic

Field summary

Modifier and TypeField
private static final int
c
PANIC_MIN_DURATION
field_30107
f_wcvudbwu
MIN_RUN_TIME
MIN_RUN_TIME
f_147379_
private static final int
d
PANIC_MAX_DURATION
field_30108
f_iynajoye
MAX_RUN_TIME
MAX_RUN_TIME
f_147380_
private static final int
e
PANIC_DISTANCE_HORIZONTAL
field_30109
f_fqkxixwg
HORIZONTAL_RANGE
HORIZONTAL_RANGE
f_196637_
private static final int
f
PANIC_DISTANCE_VERTICAL
field_30110
f_trxuqcna
VERTICAL_RANGE
VERTICAL_RANGE
f_147382_
private static final Predicate<PathfinderMob>
g
DEFAULT_SHOULD_PANIC_PREDICATE
field_42976
f_jftmekbv
PANIC_PREDICATE
f_273847_
private final float
h
speedMultiplier
field_30111
f_bkeyoylk
speed
speed
f_147383_
private final Predicate<PathfinderMob>
i
shouldPanic
field_42977
f_upafsdcb
predicate
f_273842_

Constructor summary

ModifierConstructor
public (float speed)
public (float speed, Predicate<PathfinderMob> predicate)

Method summary

Modifier and TypeMethod
protected boolean
a(akq arg0, bjp arg1)
checkExtraStartConditions(ServerLevel arg0, PathfinderMob arg1)
method_49487(class_3218 arg0, class_1314 arg1)
m_wnrcnust(C_bdwnwhiu arg0, C_hqdayibh arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
m_6114_(C_12_ p_275721_, C_533_ arg1)
protected boolean
a(akq arg0, bjp arg1, long arg2)
canStillUse(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_35063(class_3218 arg0, class_1314 arg1, long arg2)
m_kshbojbi(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6737_(C_12_ p_147392_, C_533_ p_147393_, long arg2)
protected void
b(akq arg0, bjp arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_35064(class_3218 arg0, class_1314 arg1, long arg2)
m_bsvdaoof(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6735_(C_12_ p_147400_, C_533_ p_147401_, long arg2)
protected void
c(akq arg0, bjp arg1, long arg2)
stop(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_44203(class_3218 arg0, class_1314 arg1, long arg2)
m_kldayrgg(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
finishRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
finishRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6732_(C_12_ p_217119_, C_533_ p_217120_, long arg2)
protected void
d(akq arg0, bjp arg1, long arg2)
tick(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_35065(class_3218 arg0, class_1314 arg1, long arg2)
m_ehgfldyy(C_bdwnwhiu arg0, C_hqdayibh arg1, long arg2)
keepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
keepRunning(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6725_(C_12_ p_147404_, C_533_ p_147405_, long arg2)
private Vec3
a(bjp arg0, akq arg1)
getPanicPos(PathfinderMob arg0, ServerLevel arg1)
method_39761(class_1314 arg0, class_3218 arg1)
m_ihbbxfox(C_hqdayibh arg0, C_bdwnwhiu arg1)
findTarget(PathAwareEntity entity, ServerWorld world)
findTarget(PathAwareEntity entity, ServerWorld world)
m_196638_(C_533_ p_196640_, C_12_ arg1)
private Optional<BlockPos>
a(cpb arg0, biq arg1)
lookForWater(BlockGetter arg0, Entity arg1)
method_39762(class_1922 arg0, class_1297 arg1)
m_dbqqkxir(C_peaveboq arg0, C_astfners arg1)
findClosestWater(BlockView world, Entity entity)
findClosestWater(BlockView world, Entity entity)
m_196641_(C_1559_ p_196643_, C_507_ arg1)