public class EntityAIFleeSun extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private double |
movementSpeed |
private double |
shelterX |
private double |
shelterY |
private double |
shelterZ |
private EntityCreature |
theCreature |
private World |
theWorld |
Constructor and Description |
---|
EntityAIFleeSun(EntityCreature theCreatureIn,
double movementSpeedIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
private Vec3 |
findPossibleShelter() |
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
getMutexBits, isInterruptible, resetTask, setMutexBits, updateTask
private EntityCreature theCreature
private double shelterX
private double shelterY
private double shelterZ
private double movementSpeed
private World theWorld
public EntityAIFleeSun(EntityCreature theCreatureIn, double movementSpeedIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean continueExecuting()
continueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
private Vec3 findPossibleShelter()