public class EntityAIHarvestFarmland extends EntityAIMoveToBlock
Modifier and Type | Field and Description |
---|---|
private int |
field_179501_f |
private boolean |
field_179503_e |
private boolean |
hasFarmItem |
private EntityVillager |
theVillager
Villager that is harvesting
|
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
|
getIsAboveDestination
getMutexBits, isInterruptible, setMutexBits
private final EntityVillager theVillager
private boolean hasFarmItem
private boolean field_179503_e
private int field_179501_f
public EntityAIHarvestFarmland(EntityVillager theVillagerIn, double speedIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIMoveToBlock
public boolean continueExecuting()
continueExecuting
in class EntityAIMoveToBlock
public void startExecuting()
startExecuting
in class EntityAIMoveToBlock
public void resetTask()
resetTask
in class EntityAIMoveToBlock
public void updateTask()
updateTask
in class EntityAIMoveToBlock
protected boolean shouldMoveTo(World worldIn, BlockPos pos)
shouldMoveTo
in class EntityAIMoveToBlock