public class EntityAIHarvestFarmland extends EntityAIMoveToBlock
| Modifier and Type | Field and Description |
|---|---|
private int |
currentTask |
private boolean |
hasFarmItem |
private EntityVillager |
villager |
private boolean |
wantsToReapStuff |
destinationBlock, runDelay| Constructor and Description |
|---|
EntityAIHarvestFarmland(EntityVillager villagerIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
protected boolean |
shouldMoveTo(World worldIn,
BlockPos pos) |
void |
updateTask() |
getIsAboveDestination, startExecutinggetMutexBits, isInterruptible, resetTask, setMutexBitsprivate final EntityVillager villager
private boolean hasFarmItem
private boolean wantsToReapStuff
private int currentTask
public 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