public class PanicGoal extends Goal
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected CreatureEntity |
creature |
protected double |
randPosX |
protected double |
randPosY |
protected double |
randPosZ |
protected double |
speed |
| コンストラクタと説明 |
|---|
PanicGoal(CreatureEntity creature,
double speedIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected boolean |
findRandomPosition() |
protected BlockPos |
getRandPos(IBlockReader worldIn,
Entity entityIn,
int horizontalRange,
int verticalRange) |
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether execution should begin.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
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 クラス内 Goalprotected boolean findRandomPosition()
public void startExecuting()
startExecuting クラス内 Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting クラス内 Goal@Nullable protected BlockPos getRandPos(IBlockReader worldIn, Entity entityIn, int horizontalRange, int verticalRange)