net.minecraft.world.entity.ai.behavior

public class HarvestFarmland

extends Behavior<Villager>

avz
net.minecraft.world.entity.ai.behavior.HarvestFarmland
net.minecraft.class_4217
net.minecraft.entity.ai.brain.task.FarmerVillagerTask
net.minecraft.src.C_595_
net.minecraft.world.entity.ai.behavior.BehaviorFarm

Field summary

Modifier and TypeField
private static final int
c
HARVEST_DURATION
field_30124
MAX_RUN_TIME
f_147559_
public static final float
a
SPEED_MODIFIER
field_30123
WALK_SPEED
f_147558_
private BlockPos
d
aboveFarmlandPos
field_18858
currentTarget
f_23159_
private long
e
nextOkStartTime
field_18861
nextResponseTime
f_23160_
private int
f
timeWorkedSoFar
field_19239
ticksRan
f_23161_
private final List<BlockPos>
g
validFarmlandAroundVillager
field_19351
targetPositions
f_23162_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
a(abr arg0, bjq arg1)
checkExtraStartConditions(ServerLevel arg0, Villager arg1)
method_19564(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
m_6114_(C_12_ p_23175_, C_1118_ arg1)
private BlockPos
a(abr arg0)
getValidFarmland(ServerLevel arg0)
method_20641(class_3218 arg0)
chooseRandomTarget(ServerWorld world)
m_23164_(C_12_ arg0)
private boolean
a(gg arg0, abr arg1)
validPos(BlockPos arg0, ServerLevel arg1)
method_20640(class_2338 arg0, class_3218 arg1)
isSuitableTarget(BlockPos pos, ServerWorld world)
m_23180_(C_4675_ p_23182_, C_12_ arg1)
protected void
a(abr arg0, bjq arg1, long arg2)
start(ServerLevel arg0, Villager arg1, long arg2)
method_20392(class_3218 arg0, class_1646 arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6735_(C_12_ p_23178_, C_1118_ p_23179_, long arg2)
protected void
b(abr arg0, bjq arg1, long arg2)
stop(ServerLevel arg0, Villager arg1, long arg2)
method_19566(class_3218 arg0, class_1646 arg1, long arg2)
finishRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6732_(C_12_ p_23189_, C_1118_ p_23190_, long arg2)
protected void
c(abr arg0, bjq arg1, long arg2)
tick(ServerLevel arg0, Villager arg1, long arg2)
method_19565(class_3218 arg0, class_1646 arg1, long arg2)
keepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6725_(C_12_ p_23197_, C_1118_ p_23198_, long arg2)
protected boolean
d(abr arg0, bjq arg1, long arg2)
canStillUse(ServerLevel arg0, Villager arg1, long arg2)
method_20394(class_3218 arg0, class_1646 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
m_6737_(C_12_ p_23205_, C_1118_ p_23206_, long arg2)