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
Modifier and TypeFieldDescriptionprotected boolean
protected final CreatureEntity
protected double
protected double
protected double
protected final double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
boolean
protected BlockPos
lookForWater
(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_) void
start()
void
stop()
-
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:
canContinueToUse
in classGoal
-
lookForWater
@Nullable protected BlockPos lookForWater(IBlockReader p_188497_1_, Entity p_188497_2_, int p_188497_3_, int p_188497_4_)
-