public class EntityAIFleeSun extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private EntityCreature |
creature |
private double |
movementSpeed |
private double |
shelterX |
private double |
shelterY |
private double |
shelterZ |
private World |
world |
Constructor and Description |
---|
EntityAIFleeSun(EntityCreature theCreatureIn,
double movementSpeedIn) |
Modifier and Type | Method and Description |
---|---|
private Vec3d |
findPossibleShelter() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, resetTask, setMutexBits, updateTask
private final EntityCreature creature
private double shelterX
private double shelterY
private double shelterZ
private final double movementSpeed
private final World world
public EntityAIFleeSun(EntityCreature theCreatureIn, double movementSpeedIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
@Nullable private Vec3d findPossibleShelter()