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.unmapped.C_gilizaew
net.minecraft.entity.ai.goal.EscapeDangerGoal
net.minecraft.entity.ai.goal.EscapeDangerGoal
net.minecraft.src.C_712_
net.minecraft.world.entity.ai.goal.PathfinderGoalPanic

Field summary

Modifier and TypeField
public static final int
b
WATER_CHECK_DISTANCE_VERTICAL
field_36271
f_ypymgqlx
RANGE_Y
WATER_CHECK_DISTANCE_VERTICAL
f_198171_
protected final PathfinderMob
c
mob
field_6549
f_fumwfjua
mob
mob
f_25684_
protected final double
d
speedModifier
field_6548
f_svbrvkbw
speed
speed
f_25685_
protected double
e
posX
field_6547
f_gvozgbas
targetX
targetX
f_25686_
protected double
f
posY
field_6546
f_najlgwjk
targetY
targetY
f_25687_
protected double
g
posZ
field_6550
f_hpmxvyiq
targetZ
targetZ
f_25688_
protected boolean
h
isRunning
field_23227
f_gotokljs
active
active
f_25689_
private final Function<PathfinderMob, TagKey<DamageType>>
a
panicCausingDamageTypes
field_52011
f_lqzvnbrm
entityToDangerousDamageTypes
damageTypeGetter
f_336820_

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()
m_njsjilur()
canStart()
canStart()
m_8036_()
protected boolean
h()
shouldPanic()
method_40072()
m_xmohbbng()
isInDanger()
shouldEscape()
m_202729_()
protected boolean
i()
findRandomPosition()
method_6301()
m_wozquldy()
findTarget()
findTarget()
m_25702_()
public boolean
k()
isRunning()
method_26337()
m_vujcuavj()
isActive()
isActive()
m_25703_()
public void
d()
start()
method_6269()
m_koalcxuy()
start()
start()
m_8056_()
public void
e()
stop()
method_6270()
m_vtbcctlg()
stop()
stop()
m_8041_()
public boolean
c()
canContinueToUse()
method_6266()
m_trsyngvn()
shouldContinue()
shouldContinue()
m_8045_()
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)
m_bdaffrkt(C_peaveboq arg0, C_astfners arg1, int arg2)
locateClosestWater(BlockView world, Entity entity, int rangeX)
locateClosestWater(BlockView blockView, Entity entity, int rangeX)
m_198172_(C_1559_ p_198174_, C_507_ p_198175_, int arg2)