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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected PathfinderMob
protected double
protected double
protected double
protected double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
boolean
protected BlockPos
lookForWater(BlockGetter p_25695_, Entity p_25696_, int p_25697_, int p_25698_)
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(BlockGetter p_25695_, Entity p_25696_, int p_25697_, int p_25698_)
-