net.minecraft.world.entity.ai.goal

public class PanicGoal

extends Goal

ccz
net.minecraft.world.entity.ai.goal.PanicGoal
net.minecraft.class_1374
net.minecraft.entity.ai.goal.EscapeDangerGoal
net.minecraft.world.entity.ai.goal.PathfinderGoalPanic

Field summary

Modifier and TypeField
public static final int
b
WATER_CHECK_DISTANCE_VERTICAL
field_36271
RANGE_Y
protected final PathfinderMob
c
mob
field_6549
mob
protected final double
d
speedModifier
field_6548
speed
protected double
e
posX
field_6547
targetX
protected double
f
posY
field_6546
targetY
protected double
g
posZ
field_6550
targetZ
protected boolean
h
isRunning
field_23227
active
private final Function<PathfinderMob, TagKey<DamageType>>
a
panicCausingDamageTypes
field_52011
entityToDangerousDamageTypes

Constructor summary

ModifierConstructor
public (PathfinderMob mob, double speed)
public (PathfinderMob mob, double speed, TagKey<DamageType> dangerousDamageTypes)
public (PathfinderMob mob, double speed, Function<PathfinderMob, TagKey<DamageType>> entityToDangerousDamageTypes)

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
protected boolean
h()
shouldPanic()
method_40072()
isInDanger()
protected boolean
i()
findRandomPosition()
method_6301()
findTarget()
public boolean
k()
isRunning()
method_26337()
isActive()
public void
d()
start()
method_6269()
start()
public void
e()
stop()
method_6270()
stop()
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
protected BlockPos
a(dfo arg0, bum arg1, int arg2)
lookForWater(BlockGetter arg0, Entity arg1, int arg2)
method_6300(class_1922 arg0, class_1297 arg1, int arg2)
locateClosestWater(BlockView world, Entity entity, int rangeX)