Class WalkTowardsLookTargetTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WalkTowardsLookTargetTask<E>
- Mappings:
Namespace Name official bgd
intermediary net/minecraft/class_7297
named net/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Function<LivingEntity,
Optional<LookTarget>> private final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionWalkTowardsLookTargetTask
(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, int completionRange, int searchRange, float speed) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
lookTargetFunction
- Mappings:
Namespace Name Mixin selector official a
Lbgd;a:Ljava/util/function/Function;
intermediary field_38391
Lnet/minecraft/class_7297;field_38391:Ljava/util/function/Function;
named lookTargetFunction
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask;lookTargetFunction:Ljava/util/function/Function;
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official d
Lbgd;d:I
intermediary field_38392
Lnet/minecraft/class_7297;field_38392:I
named completionRange
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask;completionRange:I
-
searchRange
private final int searchRange- Mappings:
Namespace Name Mixin selector official e
Lbgd;e:I
intermediary field_38933
Lnet/minecraft/class_7297;field_38933:I
named searchRange
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask;searchRange:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official f
Lbgd;f:F
intermediary field_38393
Lnet/minecraft/class_7297;field_38393:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask;speed:F
-
-
Constructor Details
-
WalkTowardsLookTargetTask
public WalkTowardsLookTargetTask(Function<LivingEntity, Optional<LookTarget>> lookTargetFunction, int completionRange, int searchRange, float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbgd;<init>(Ljava/util/function/Function;IIF)V
intermediary <init>
Lnet/minecraft/class_7297;<init>(Ljava/util/function/Function;IIF)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask;<init>(Ljava/util/function/Function;IIF)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-