public class EntityAIHarvestFarmland extends EntityAIMoveToBlock
destinationBlock, runDelay| Constructor and Description |
|---|
EntityAIHarvestFarmland(EntityVillager villagerIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
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 |
updateTask()
Keep ticking a continuous task that has already been started
|
getIsAboveDestination, startExecutinggetMutexBits, isInterruptible, resetTask, setMutexBitspublic EntityAIHarvestFarmland(EntityVillager villagerIn, double speedIn)
public boolean shouldExecute()
shouldExecute in class EntityAIMoveToBlockpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIMoveToBlockpublic void updateTask()
updateTask in class EntityAIMoveToBlockprotected boolean shouldMoveTo(World worldIn, BlockPos pos)
shouldMoveTo in class EntityAIMoveToBlock