Package net.minecraft.entity.ai.goal
Class PanicGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.PanicGoal
- Direct Known Subclasses:
FoxEntity.PanicGoal,PandaEntity.PanicGoal,PolarBearEntity.PanicGoal,RabbitEntity.PanicGoal,TurtleEntity.PanicGoal
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final CreatureEntityprotected doubleprotected doubleprotected doubleprotected final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()protected booleanbooleanprotected BlockPoslookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_) voidstart()voidstop()
-
Field Details
-
mob
-
speedModifier
protected final double speedModifier -
posX
protected double posX -
posY
protected double posY -
posZ
protected double posZ -
isRunning
protected boolean isRunning
-
-
Constructor Details
-
PanicGoal
-
-
Method Details
-
canUse
public boolean canUse() -
findRandomPosition
protected boolean findRandomPosition() -
isRunning
public boolean isRunning() -
start
public void start() -
stop
public void stop() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classGoal
-
lookForWater
@Nullable protected BlockPos lookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_)
-