public class EntityAIHarvestFarmland extends EntityAIMoveToBlock
destinationBlock, runDelay| Constructor and Description |
|---|
EntityAIHarvestFarmland(EntityVillager theVillagerIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
protected boolean |
shouldMoveTo(World worldIn,
BlockPos pos)
Return true to set given position as destination
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
getIsAboveDestinationgetMutexBits, isInterruptible, setMutexBitspublic EntityAIHarvestFarmland(EntityVillager theVillagerIn, double speedIn)
public boolean shouldExecute()
shouldExecute in class EntityAIMoveToBlockpublic boolean continueExecuting()
continueExecuting in class EntityAIMoveToBlockpublic void startExecuting()
startExecuting in class EntityAIMoveToBlockpublic void resetTask()
resetTask in class EntityAIMoveToBlockpublic void updateTask()
updateTask in class EntityAIMoveToBlockprotected boolean shouldMoveTo(World worldIn, BlockPos pos)
shouldMoveTo in class EntityAIMoveToBlock