Class FarmerVillagerTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.FarmerVillagerTask
public class FarmerVillagerTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official atl
intermediary net/minecraft/class_4217
named net/minecraft/entity/ai/brain/task/FarmerVillagerTask
-
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 BlockPos
currentTarget
private long
nextResponseTime
private List<BlockPos>
targetPositions
private int
ticksRan
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description FarmerVillagerTask()
-
Method Summary
Modifier and Type Method Description private BlockPos
chooseRandomTarget(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.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
currentTarget
- Mappings:
Namespace Name Mixin selector official b
Latl;b:Lfx;
intermediary field_18858
Lnet/minecraft/class_4217;field_18858:Lnet/minecraft/class_2338;
named currentTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;currentTarget:Lnet/minecraft/util/math/BlockPos;
-
nextResponseTime
private long nextResponseTime- Mappings:
Namespace Name Mixin selector official c
Latl;c:J
intermediary field_18861
Lnet/minecraft/class_4217;field_18861:J
named nextResponseTime
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;nextResponseTime:J
-
ticksRan
private int ticksRan- Mappings:
Namespace Name Mixin selector official d
Latl;d:I
intermediary field_19239
Lnet/minecraft/class_4217;field_19239:I
named ticksRan
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;ticksRan:I
-
targetPositions
- Mappings:
Namespace Name Mixin selector official e
Latl;e:Ljava/util/List;
intermediary field_19351
Lnet/minecraft/class_4217;field_19351:Ljava/util/List;
named targetPositions
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;targetPositions:Ljava/util/List;
-
-
Constructor Details
-
FarmerVillagerTask
public FarmerVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Latl;a(Laav;Lbgy;)Z
intermediary method_19564
Lnet/minecraft/class_4217;method_19564(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
chooseRandomTarget
- Mappings:
Namespace Name Mixin selector official a
Latl;a(Laav;)Lfx;
intermediary method_20641
Lnet/minecraft/class_4217;method_20641(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2338;
named chooseRandomTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;chooseRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;
-
isSuitableTarget
- Mappings:
Namespace Name Mixin selector official a
Latl;a(Lfx;Laav;)Z
intermediary method_20640
Lnet/minecraft/class_4217;method_20640(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
named isSuitableTarget
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;isSuitableTarget(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
-
run
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Latl;a(Laav;Lbgy;J)V
intermediary method_20392
Lnet/minecraft/class_4217;method_20392(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Latl;b(Laav;Lbgy;J)V
intermediary method_19566
Lnet/minecraft/class_4217;method_19566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official c
Latl;c(Laav;Lbgy;J)V
intermediary method_19565
Lnet/minecraft/class_4217;method_19565(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official d
Latl;d(Laav;Lbgy;J)Z
intermediary method_20394
Lnet/minecraft/class_4217;method_20394(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-