net.minecraft.entity.ai.brain.task

public class VillagerWorkTask

extends MultiTickTask<VillagerEntity>

All mapped superinterfaces:

Task

net.minecraft.world.entity.ai.behavior.WorkAtPoi
net.minecraft.class_4133
net.minecraft.entity.ai.brain.task.VillagerWorkTask

Field summary

Modifier and TypeField
private static final int
CHECK_COOLDOWN
field_30192
RUN_TIME
private static final double
DISTANCE
field_30193
MAX_DISTANCE
private long
lastCheck
field_19426
lastCheckedTime

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected boolean
checkExtraStartConditions(ServerLevel level, Villager body)
method_21641(class_3218 arg0, class_1646 arg1)
shouldRun(ServerWorld arg0, VillagerEntity arg1)
protected void
start(ServerLevel level, Villager body, long timestamp)
method_21642(class_3218 arg0, class_1646 arg1, long arg2)
run(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected void
useWorkstation(ServerLevel level, Villager body)
method_26335(class_3218 arg0, class_1646 arg1)
performAdditionalWork(ServerWorld world, VillagerEntity entity)
protected boolean
canStillUse(ServerLevel level, Villager body, long timestamp)
method_26336(class_3218 arg0, class_1646 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, VillagerEntity arg1, long arg2)
protected boolean
checkExtraStartConditions(ServerLevel level, LivingEntity body)
method_18919(class_3218 arg0, class_1309 arg1)
shouldRun(ServerWorld arg0, LivingEntity arg1)
protected boolean
canStillUse(ServerLevel level, LivingEntity body, long timestamp)
method_18927(class_3218 arg0, class_1309 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, LivingEntity arg1, long arg2)
protected void
start(ServerLevel level, LivingEntity body, long timestamp)
method_18920(class_3218 arg0, class_1309 arg1, long arg2)
run(ServerWorld arg0, LivingEntity arg1, long arg2)
private static void
lambda$start$0(Brain arg0, GlobalPos arg1)
method_19613(class_4095 arg0, class_4208 arg1)
method_19613(Brain arg0, GlobalPos pos)