Class VillagerWorkTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerWorkTask
- Direct Known Subclasses:
FarmerWorkTask
public class VillagerWorkTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official avt
intermediary net/minecraft/class_4133
named net/minecraft/entity/ai/brain/task/VillagerWorkTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private long
lastCheckedTime
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description VillagerWorkTask()
-
Method Summary
Modifier and Type Method Description protected void
performAdditionalWork(ServerWorld world, VillagerEntity entity)
protected void
run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected boolean
shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, stop, tick, toString, tryStarting
-
Field Details
-
lastCheckedTime
private long lastCheckedTime- Mappings:
Namespace Name Mixin selector official b
Lavt;b:J
intermediary field_19426
Lnet/minecraft/class_4133;field_19426:J
named lastCheckedTime
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;lastCheckedTime:J
-
-
Constructor Details
-
VillagerWorkTask
public VillagerWorkTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Lavt;b(Laav;Lbgy;)Z
intermediary method_21641
Lnet/minecraft/class_4133;method_21641(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
run
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavt;a(Laav;Lbgy;J)V
intermediary method_21642
Lnet/minecraft/class_4133;method_21642(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
performAdditionalWork
- Mappings:
Namespace Name Mixin selector official a
Lavt;a(Laav;Lbgy;)V
intermediary method_26335
Lnet/minecraft/class_4133;method_26335(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)V
named performAdditionalWork
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;performAdditionalWork(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)V
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Lavt;b(Laav;Lbgy;J)Z
intermediary method_26336
Lnet/minecraft/class_4133;method_26336(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-