Class VillagerWorkTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerWorkTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Direct Known Subclasses:
FarmerWorkTask
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/VillagerWorkTask
intermediary net/minecraft/class_4133
official byg
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private static final double
private static final int
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, keepRunning, stop, tick, tryStarting
-
Field Details
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;RUN_TIME:I
intermediary field_30192
Lnet/minecraft/class_4133;field_30192:I
official c
Lbyg;c:I
-
MAX_DISTANCE
private static final double MAX_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_DISTANCE
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;MAX_DISTANCE:D
intermediary field_30193
Lnet/minecraft/class_4133;field_30193:D
official d
Lbyg;d:D
-
lastCheckedTime
private long lastCheckedTime- Mappings:
Namespace Name Mixin selector named lastCheckedTime
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;lastCheckedTime:J
intermediary field_19426
Lnet/minecraft/class_4133;field_19426:J
official e
Lbyg;e:J
-
-
Constructor Details
-
VillagerWorkTask
public VillagerWorkTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_21641
Lnet/minecraft/class_4133;method_21641(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official b
Lbyg;b(Laqm;Lcly;)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_21642
Lnet/minecraft/class_4133;method_21642(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official a
Lbyg;a(Laqm;Lcly;J)V
-
performAdditionalWork
- Mappings:
Namespace Name Mixin selector named performAdditionalWork
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;performAdditionalWork(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_26335
Lnet/minecraft/class_4133;method_26335(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)V
official a
Lbyg;a(Laqm;Lcly;)V
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/VillagerWorkTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_26336
Lnet/minecraft/class_4133;method_26336(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official b
Lbyg;b(Laqm;Lcly;J)Z
-