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, shouldRecalculatePath
public HarvestFarmLandGoal(NPCEntity theVillagerIn, double speedIn)
public boolean canUse()
canUse
in class net.minecraft.entity.ai.goal.MoveToBlockGoal
public boolean canContinueToUse()
canContinueToUse
in class net.minecraft.entity.ai.goal.MoveToBlockGoal
public void start()
start
in class net.minecraft.entity.ai.goal.MoveToBlockGoal
public void stop()
stop
in class net.minecraft.entity.ai.goal.Goal
public void tick()
tick
in class net.minecraft.entity.ai.goal.MoveToBlockGoal
protected boolean isValidTarget(net.minecraft.world.IWorldReader worldIn, net.minecraft.util.math.BlockPos pos)
isValidTarget
in class net.minecraft.entity.ai.goal.MoveToBlockGoal