public class EntityAIPanic extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
protected EntityCreature |
creature |
protected double |
randPosX |
protected double |
randPosY |
protected double |
randPosZ |
protected double |
speed |
| Constructor and Description |
|---|
EntityAIPanic(EntityCreature creature,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
findRandomPosition() |
private BlockPos |
getRandPos(World worldIn,
Entity entityIn,
int horizontalRange,
int verticalRange) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, resetTask, setMutexBits, updateTaskprotected final EntityCreature creature
protected double speed
protected double randPosX
protected double randPosY
protected double randPosZ
public EntityAIPanic(EntityCreature creature, double speedIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBaseprotected boolean findRandomPosition()
public void startExecuting()
startExecuting in class EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBase