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
public class PanicGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isRunning
protected CreatureEntity
mob
protected double
posX
protected double
posY
protected double
posZ
protected double
speedModifier
-
Constructor Summary
Constructors Constructor Description PanicGoal(CreatureEntity p_i1645_1_, double p_i1645_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
protected boolean
findRandomPosition()
boolean
isRunning()
protected BlockPos
lookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_)
void
start()
void
stop()
-
-
-
Field Detail
-
mob
protected final CreatureEntity mob
-
speedModifier
protected final double speedModifier
-
posX
protected double posX
-
posY
protected double posY
-
posZ
protected double posZ
-
isRunning
protected boolean isRunning
-
-
Constructor Detail
-
PanicGoal
public PanicGoal(CreatureEntity p_i1645_1_, double p_i1645_2_)
-
-
Method Detail
-
findRandomPosition
protected boolean findRandomPosition()
-
isRunning
public boolean isRunning()
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
lookForWater
@Nullable protected BlockPos lookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_)
-
-