Class WalkTowardJobSiteTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.WalkTowardJobSiteTask
public class WalkTowardJobSiteTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official atj
intermediary net/minecraft/class_5325
named net/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask
-
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 (package private) float
speed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description WalkTowardJobSiteTask(float speed)
-
Method Summary
Modifier and Type Method Description protected void
finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected void
keepRunning(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, run, stop, tick, toString, tryStarting
-
Field Details
-
speed
final float speed- Mappings:
Namespace Name Mixin selector official b
Latj;b:F
intermediary field_25155
Lnet/minecraft/class_5325;field_25155:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;speed:F
-
-
Constructor Details
-
WalkTowardJobSiteTask
public WalkTowardJobSiteTask(float speed)- Mappings:
Namespace Name Mixin selector official <init>
Latj;<init>(F)V
intermediary <init>
Lnet/minecraft/class_5325;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;<init>(F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Latj;a(Laav;Lbgy;)Z
intermediary method_29251
Lnet/minecraft/class_5325;method_29251(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Latj;a(Laav;Lbgy;J)Z
intermediary method_29523
Lnet/minecraft/class_5325;method_29523(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
keepRunning
- Overrides:
keepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Latj;b(Laav;Lbgy;J)V
intermediary method_29252
Lnet/minecraft/class_5325;method_29252(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official c
Latj;c(Laav;Lbgy;J)V
intermediary method_29525
Lnet/minecraft/class_5325;method_29525(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-