public class PanicGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
protected CreatureEntity |
creature |
protected double |
randPosX |
protected double |
randPosY |
protected double |
randPosZ |
protected double |
speed |
| Constructor and Description |
|---|
PanicGoal(CreatureEntity creature,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
findRandomPosition() |
protected BlockPos |
getRandPos(IBlockReader worldIn,
Entity entityIn,
int horizontalRange,
int verticalRange) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, resetTask, setMutexFlags, tick, toStringprotected final CreatureEntity creature
protected final double speed
protected double randPosX
protected double randPosY
protected double randPosZ
public PanicGoal(CreatureEntity creature, double speedIn)
public boolean shouldExecute()
shouldExecute in class Goalprotected boolean findRandomPosition()
public void startExecuting()
startExecuting in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goal@Nullable protected BlockPos getRandPos(IBlockReader worldIn, Entity entityIn, int horizontalRange, int verticalRange)