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() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, resetTask, setMutexBits, updateTask
protected 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 EntityAIBase
protected boolean findRandomPosition()
public void startExecuting()
startExecuting
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase