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, setMutexBitsprivate 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 EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBaseprotected boolean getIsAboveDestination()
private boolean searchForDestination()