Class FarmerVillagerTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.FarmerVillagerTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/FarmerVillagerTask
intermediary net/minecraft/class_4217
official bwa
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private long
private int
static final float
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchooseRandomTarget
(ServerWorld world) protected void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private boolean
isSuitableTarget
(BlockPos pos, ServerWorld world) protected void
keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) 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
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;MAX_RUN_TIME:I
intermediary field_30124
Lnet/minecraft/class_4217;field_30124:I
official d
Lbwa;d:I
-
WALK_SPEED
public static final float WALK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named WALK_SPEED
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;WALK_SPEED:F
intermediary field_30123
Lnet/minecraft/class_4217;field_30123:F
official c
Lbwa;c:F
-
currentTarget
- Mappings:
Namespace Name Mixin selector named currentTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;currentTarget:Lnet/minecraft/util/math/BlockPos;
intermediary field_18858
Lnet/minecraft/class_4217;field_18858:Lnet/minecraft/class_2338;
official e
Lbwa;e:Ljd;
-
nextResponseTime
private long nextResponseTime- Mappings:
Namespace Name Mixin selector named nextResponseTime
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;nextResponseTime:J
intermediary field_18861
Lnet/minecraft/class_4217;field_18861:J
official f
Lbwa;f:J
-
ticksRan
private int ticksRan- Mappings:
Namespace Name Mixin selector named ticksRan
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;ticksRan:I
intermediary field_19239
Lnet/minecraft/class_4217;field_19239:I
official g
Lbwa;g:I
-
targetPositions
- Mappings:
Namespace Name Mixin selector named targetPositions
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;targetPositions:Ljava/util/List;
intermediary field_19351
Lnet/minecraft/class_4217;field_19351:Ljava/util/List;
official h
Lbwa;h:Ljava/util/List;
-
-
Constructor Details
-
FarmerVillagerTask
public FarmerVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_19564
Lnet/minecraft/class_4217;method_19564(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official a
Lbwa;a(Laqt;Lcmi;)Z
-
chooseRandomTarget
- Mappings:
Namespace Name Mixin selector named chooseRandomTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;chooseRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;
intermediary method_20641
Lnet/minecraft/class_4217;method_20641(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2338;
official a
Lbwa;a(Laqt;)Ljd;
-
isSuitableTarget
- Mappings:
Namespace Name Mixin selector named isSuitableTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;isSuitableTarget(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
intermediary method_20640
Lnet/minecraft/class_4217;method_20640(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
official a
Lbwa;a(Ljd;Laqt;)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_20392
Lnet/minecraft/class_4217;method_20392(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official a
Lbwa;a(Laqt;Lcmi;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19566
Lnet/minecraft/class_4217;method_19566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official b
Lbwa;b(Laqt;Lcmi;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19565
Lnet/minecraft/class_4217;method_19565(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official c
Lbwa;c(Laqt;Lcmi;J)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/FarmerVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_20394
Lnet/minecraft/class_4217;method_20394(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official d
Lbwa;d(Laqt;Lcmi;J)Z
-