Class WalkTowardsLookTargetTask<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WalkTowardsLookTargetTask<E>

public class WalkTowardsLookTargetTask<E extends LivingEntity> extends Task<E>
Mappings:
Namespace Name
official bgd
intermediary net/minecraft/class_7297
named net/minecraft/entity/ai/brain/task/WalkTowardsLookTargetTask
  • Field Details

    • lookTargetFunction

      private final Function<LivingEntity,Optional<LookTarget>> 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

      protected boolean shouldRun(ServerWorld world, E entity)
      Overrides:
      shouldRun in class Task<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

      protected void run(ServerWorld world, E entity, long time)
      Overrides:
      run in class Task<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