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 avdintermediary net/minecraft/class_4217named 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 @Nullable BlockPoscurrentTargetstatic floatfield_30123private static intfield_30124private longnextResponseTimeprivate List<BlockPos>targetPositionsprivate intticksRanFields 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 @Nullable BlockPoschooseRandomTarget(ServerWorld world)protected voidfinishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)private booleanisSuitableTarget(BlockPos pos, ServerWorld world)protected voidkeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected voidrun(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)protected booleanshouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
field_30124
private static final int field_30124- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLavd;c:Iintermediary field_30124Lnet/minecraft/class_4217;field_30124:Inamed field_30124Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;field_30124:I
-
field_30123
public static final float field_30123- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLavd;a:Fintermediary field_30123Lnet/minecraft/class_4217;field_30123:Fnamed field_30123Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;field_30123:F
-
currentTarget
- Mappings:
Namespace Name Mixin selector official dLavd;d:Lgb;intermediary field_18858Lnet/minecraft/class_4217;field_18858:Lnet/minecraft/class_2338;named currentTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;currentTarget:Lnet/minecraft/util/math/BlockPos;
-
nextResponseTime
private long nextResponseTime- Mappings:
Namespace Name Mixin selector official eLavd;e:Jintermediary field_18861Lnet/minecraft/class_4217;field_18861:Jnamed nextResponseTimeLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;nextResponseTime:J
-
ticksRan
private int ticksRan- Mappings:
Namespace Name Mixin selector official fLavd;f:Iintermediary field_19239Lnet/minecraft/class_4217;field_19239:Inamed ticksRanLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;ticksRan:I
-
targetPositions
- Mappings:
Namespace Name Mixin selector official gLavd;g:Ljava/util/List;intermediary field_19351Lnet/minecraft/class_4217;field_19351:Ljava/util/List;named targetPositionsLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;targetPositions:Ljava/util/List;
-
-
Constructor Details
-
FarmerVillagerTask
public FarmerVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLavd;a(Labj;Lbis;)Zintermediary method_19564Lnet/minecraft/class_4217;method_19564(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Znamed shouldRunLnet/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 aLavd;a(Labj;)Lgb;intermediary method_20641Lnet/minecraft/class_4217;method_20641(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2338;named chooseRandomTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;chooseRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;
-
isSuitableTarget
- Mappings:
Namespace Name Mixin selector official aLavd;a(Lgb;Labj;)Zintermediary method_20640Lnet/minecraft/class_4217;method_20640(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Znamed isSuitableTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;isSuitableTarget(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
-
run
- Overrides:
runin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official aLavd;a(Labj;Lbis;J)Vintermediary method_20392Lnet/minecraft/class_4217;method_20392(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed runLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
- Overrides:
finishRunningin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official bLavd;b(Labj;Lbis;J)Vintermediary method_19566Lnet/minecraft/class_4217;method_19566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed finishRunningLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunningin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official cLavd;c(Labj;Lbis;J)Vintermediary method_19565Lnet/minecraft/class_4217;method_19565(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vnamed keepRunningLnet/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:
shouldKeepRunningin classTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector official dLavd;d(Labj;Lbis;J)Zintermediary method_20394Lnet/minecraft/class_4217;method_20394(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Znamed shouldKeepRunningLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-