Class RangedApproachTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.RangedApproachTask

public class RangedApproachTask
extends Task<MobEntity>
Mappings:
Namespace Name
official auq
intermediary net/minecraft/class_4822
named net/minecraft/entity/ai/brain/task/RangedApproachTask
  • Field Details

    • speed

      private final Function<LivingEntity,​Float> speed
      Mappings:
      Namespace Name Mixin selector
      official b Lauq;b:Ljava/util/function/Function;
      intermediary field_22323 Lnet/minecraft/class_4822;field_22323:Ljava/util/function/Function;
      named speed Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;speed:Ljava/util/function/Function;
  • Constructor Details

    • RangedApproachTask

      public RangedApproachTask​(float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lauq;<init>(F)V
      intermediary <init> Lnet/minecraft/class_4822;<init>(F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;<init>(F)V
    • RangedApproachTask

      public RangedApproachTask​(Function<LivingEntity,​Float> speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lauq;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_4822;<init>(Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;<init>(Ljava/util/function/Function;)V
  • Method Details

    • run

      protected void run​(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      run in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lauq;a(Laav;Larj;J)V
      intermediary method_25945 Lnet/minecraft/class_4822;method_25945(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • rememberWalkTarget

      private void rememberWalkTarget​(LivingEntity entity, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Lauq;a(Lari;Lari;)V
      intermediary method_24605 Lnet/minecraft/class_4822;method_24605(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)V
      named rememberWalkTarget Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;rememberWalkTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)V
    • forgetWalkTarget

      private void forgetWalkTarget​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lauq;a(Lari;)V
      intermediary method_24604 Lnet/minecraft/class_4822;method_24604(Lnet/minecraft/class_1309;)V
      named forgetWalkTarget Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;forgetWalkTarget(Lnet/minecraft/entity/LivingEntity;)V