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 axi
intermediary net/minecraft/class_4822
named net/minecraft/entity/ai/brain/task/RangedApproachTask
  • Field Details

    • WEAPON_REACH_REDUCTION

      private static final int WEAPON_REACH_REDUCTION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laxi;a:I
      intermediary field_30166 Lnet/minecraft/class_4822;field_30166:I
      named WEAPON_REACH_REDUCTION Lnet/minecraft/entity/ai/brain/task/RangedApproachTask;WEAPON_REACH_REDUCTION:I
    • speed

      private final Function<LivingEntity,Float> speed
      Mappings:
      Namespace Name Mixin selector
      official c Laxi;c: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> Laxi;<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> Laxi;<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 Laxi;a(Labr;Latv;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 Laxi;a(Latt;Latt;)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 Laxi;a(Latt;)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