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/FarmerVillagerTaskintermediary net/minecraft/class_4217official cbe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate longprivate intstatic final floatFields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseRandomTarget(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.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_TIMELnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;MAX_RUN_TIME:Iintermediary field_30124Lnet/minecraft/class_4217;field_30124:Iofficial dLcbe;d:I
-
WALK_SPEED
public static final float WALK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named WALK_SPEEDLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;WALK_SPEED:Fintermediary field_30123Lnet/minecraft/class_4217;field_30123:Fofficial cLcbe;c:F
-
currentTarget
- Mappings:
Namespace Name Mixin selector named currentTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;currentTarget:Lnet/minecraft/util/math/BlockPos;intermediary field_18858Lnet/minecraft/class_4217;field_18858:Lnet/minecraft/class_2338;official eLcbe;e:Liy;
-
nextResponseTime
private long nextResponseTime- Mappings:
Namespace Name Mixin selector named nextResponseTimeLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;nextResponseTime:Jintermediary field_18861Lnet/minecraft/class_4217;field_18861:Jofficial fLcbe;f:J
-
ticksRan
private int ticksRan- Mappings:
Namespace Name Mixin selector named ticksRanLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;ticksRan:Iintermediary field_19239Lnet/minecraft/class_4217;field_19239:Iofficial gLcbe;g:I
-
targetPositions
- Mappings:
Namespace Name Mixin selector named targetPositionsLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;targetPositions:Ljava/util/List;intermediary field_19351Lnet/minecraft/class_4217;field_19351:Ljava/util/List;official hLcbe;h:Ljava/util/List;
-
-
Constructor Details
-
FarmerVillagerTask
public FarmerVillagerTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classMultiTickTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector named shouldRunLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Zintermediary method_19564Lnet/minecraft/class_4217;method_19564(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Zofficial aLcbe;a(Lasi;Lcsk;)Z
-
chooseRandomTarget
- Mappings:
Namespace Name Mixin selector named chooseRandomTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;chooseRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;intermediary method_20641Lnet/minecraft/class_4217;method_20641(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2338;official aLcbe;a(Lasi;)Liy;
-
isSuitableTarget
- Mappings:
Namespace Name Mixin selector named isSuitableTargetLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;isSuitableTarget(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_20640Lnet/minecraft/class_4217;method_20640(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Zofficial aLcbe;a(Liy;Lasi;)Z
-
run
- Overrides:
runin classMultiTickTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector named runLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Vintermediary method_20392Lnet/minecraft/class_4217;method_20392(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vofficial aLcbe;a(Lasi;Lcsk;J)V
-
finishRunning
- Overrides:
finishRunningin classMultiTickTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector named finishRunningLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Vintermediary method_19566Lnet/minecraft/class_4217;method_19566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vofficial bLcbe;b(Lasi;Lcsk;J)V
-
keepRunning
- Overrides:
keepRunningin classMultiTickTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector named keepRunningLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Vintermediary method_19565Lnet/minecraft/class_4217;method_19565(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Vofficial cLcbe;c(Lasi;Lcsk;J)V
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunningin classMultiTickTask<VillagerEntity>- Mappings:
Namespace Name Mixin selector named shouldKeepRunningLnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Zintermediary method_20394Lnet/minecraft/class_4217;method_20394(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Zofficial dLcbe;d(Lasi;Lcsk;J)Z
-