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 Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected final PathfinderMob
protected double
protected double
protected double
protected final double
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
protected boolean
boolean
protected BlockPos
lookForWater
(BlockGetter p_198173_, Entity p_198174_, int p_198175_) protected boolean
void
start()
void
stop()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
Constructor Details
-
Method Details
-
canUse
public boolean canUse() -
shouldPanic
protected boolean shouldPanic() -
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
-