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