public class HarvestFarmLandGoal
extends net.minecraft.entity.ai.goal.MoveToBlockGoal
| Constructor and Description |
|---|
HarvestFarmLandGoal(NPCEntity theVillagerIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinueToUse()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
protected boolean |
isValidTarget(net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
Return true to set given position as destination
|
void |
start()
Execute a one shot task or start executing a continuous task
|
void |
stop()
Resets the task
|
void |
tick()
Updates the task
|
acceptedDistance, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, shouldRecalculatePathpublic HarvestFarmLandGoal(NPCEntity theVillagerIn, double speedIn)
public boolean canUse()
canUse in class net.minecraft.entity.ai.goal.MoveToBlockGoalpublic boolean canContinueToUse()
canContinueToUse in class net.minecraft.entity.ai.goal.MoveToBlockGoalpublic void start()
start in class net.minecraft.entity.ai.goal.MoveToBlockGoalpublic void stop()
stop in class net.minecraft.entity.ai.goal.Goalpublic void tick()
tick in class net.minecraft.entity.ai.goal.MoveToBlockGoalprotected boolean isValidTarget(net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
isValidTarget in class net.minecraft.entity.ai.goal.MoveToBlockGoal