net.minecraft.world.entity.ai.behavior

public class AnimalPanic<E extends PathfinderMob>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

cae
net.minecraft.world.entity.ai.behavior.AnimalPanic
net.minecraft.class_6028

Field summary

Modifier and TypeField
private static final int
c
PANIC_MIN_DURATION
field_30107
private static final int
d
PANIC_MAX_DURATION
field_30108
private static final int
e
PANIC_DISTANCE_HORIZONTAL
field_30109
private static final int
f
PANIC_DISTANCE_VERTICAL
field_30110
private final float
g
speedMultiplier
field_30111
private final Function<PathfinderMob, TagKey<DamageType>>
h
panicCausingDamageTypes
field_52010
private final Function<E, Vec3>
i
positionGetter
field_59675

Constructor summary

ModifierConstructor
public (float arg0)
public (float arg0, int arg1)
public (float arg0, Function<PathfinderMob, TagKey<DamageType>> arg1)
public (float arg0, Function<PathfinderMob, TagKey<DamageType>> arg1, Function<E, Vec3> arg2)

Method summary

Modifier and TypeMethod
protected boolean
a(asi arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_49487(class_3218 arg0, E arg1)
protected boolean
a(asi arg0, E arg1, long arg2)
canStillUse(ServerLevel arg0, E arg1, long arg2)
method_35063(class_3218 arg0, E arg1, long arg2)
protected void
b(asi arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_35064(class_3218 arg0, E arg1, long arg2)
protected void
c(asi arg0, E arg1, long arg2)
stop(ServerLevel arg0, E arg1, long arg2)
method_44203(class_3218 arg0, E arg1, long arg2)
protected void
d(asi arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_35065(class_3218 arg0, E arg1, long arg2)
private Vec3
a(E arg0, asi arg1)
getPanicPos(E arg0, ServerLevel arg1)
method_39761(E arg0, class_3218 arg1)
private Optional<BlockPos>
a(dkd arg0, bxs arg1)
lookForWater(BlockGetter arg0, Entity arg1)
method_39762(class_1922 arg0, class_1297 arg1)