Class PanicGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.PanicGoal
- Direct Known Subclasses:
- Fox.FoxPanicGoal,- Panda.PandaPanicGoal,- PolarBear.PolarBearPanicGoal,- Rabbit.RabbitPanicGoal,- Turtle.TurtlePanicGoal,- Wolf.WolfPanicGoal
- 
Nested Class Summary
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected final PathfinderMobprotected doubleprotected doubleprotected doubleprotected final doublestatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanbooleanprotected BlockPoslookForWater(BlockGetter p_198173_, Entity p_198174_, int p_198175_) protected booleanvoidstart()voidstop()Methods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
- 
Field Details- 
WATER_CHECK_DISTANCE_VERTICALpublic static final int WATER_CHECK_DISTANCE_VERTICAL- See Also:
 
- 
mob
- 
speedModifierprotected final double speedModifier
- 
posXprotected double posX
- 
posYprotected double posY
- 
posZprotected double posZ
- 
isRunningprotected boolean isRunning
 
- 
- 
Constructor Details- 
PanicGoal
 
- 
- 
Method Details- 
canUsepublic boolean canUse()
- 
shouldPanicprotected boolean shouldPanic()
- 
findRandomPositionprotected boolean findRandomPosition()
- 
isRunningpublic boolean isRunning()
- 
startpublic void start()
- 
stoppublic void stop()
- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- Goal
 
- 
lookForWater
 
-