public abstract class EntityAIMoveToBlock extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private EntityCreature |
creature |
protected BlockPos |
destinationBlock |
private boolean |
isAboveDestination |
private int |
maxStayTicks |
private double |
movementSpeed |
protected int |
runDelay |
private int |
searchLength |
private int |
timeoutCounter |
Constructor and Description |
---|
EntityAIMoveToBlock(EntityCreature creature,
double speedIn,
int length) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getIsAboveDestination() |
private boolean |
searchForDestination() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
protected abstract boolean |
shouldMoveTo(World worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, resetTask, setMutexBits
private final EntityCreature creature
private final double movementSpeed
protected int runDelay
private int timeoutCounter
private int maxStayTicks
protected BlockPos destinationBlock
private boolean isAboveDestination
private final int searchLength
public EntityAIMoveToBlock(EntityCreature creature, double speedIn, int length)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
protected boolean getIsAboveDestination()
private boolean searchForDestination()