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() |
void |
resetTask() |
boolean |
shouldExecute() |
protected abstract boolean |
shouldMoveTo(World worldIn,
BlockPos pos) |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBitsprotected int runDelay
protected BlockPos destinationBlock
public EntityAIMoveToBlock(EntityCreature creature, double speedIn, int length)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBaseprotected boolean getIsAboveDestination()