Class LongJumpTask<E extends MobEntity>

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

public class LongJumpTask<E extends MobEntity> extends Task<E>
Mappings:
Namespace Name
official awh
intermediary net/minecraft/class_6030
named net/minecraft/entity/ai/brain/task/LongJumpTask
  • Field Details

    • MAX_COOLDOWN

      private static final int MAX_COOLDOWN
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lawh;c:I
      intermediary field_30135 Lnet/minecraft/class_6030;field_30135:I
      named MAX_COOLDOWN Lnet/minecraft/entity/ai/brain/task/LongJumpTask;MAX_COOLDOWN:I
    • TARGET_RETAIN_TIME

      private static final int TARGET_RETAIN_TIME
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lawh;d:I
      intermediary field_30136 Lnet/minecraft/class_6030;field_30136:I
      named TARGET_RETAIN_TIME Lnet/minecraft/entity/ai/brain/task/LongJumpTask;TARGET_RETAIN_TIME:I
    • PATHING_DISTANCE

      private static final int PATHING_DISTANCE
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official e Lawh;e:I
      intermediary field_30137 Lnet/minecraft/class_6030;field_30137:I
      named PATHING_DISTANCE Lnet/minecraft/entity/ai/brain/task/LongJumpTask;PATHING_DISTANCE:I
    • RUN_TIME

      public static final int RUN_TIME
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a:I
      intermediary field_30134 Lnet/minecraft/class_6030;field_30134:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/LongJumpTask;RUN_TIME:I
    • cooldownRange

      private final UniformIntProvider cooldownRange
      Mappings:
      Namespace Name Mixin selector
      official f Lawh;f:Larm;
      intermediary field_30138 Lnet/minecraft/class_6030;field_30138:Lnet/minecraft/class_6019;
      named cooldownRange Lnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldownRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
    • verticalRange

      private final int verticalRange
      Mappings:
      Namespace Name Mixin selector
      official g Lawh;g:I
      intermediary field_30139 Lnet/minecraft/class_6030;field_30139:I
      named verticalRange Lnet/minecraft/entity/ai/brain/task/LongJumpTask;verticalRange:I
    • horizontalRange

      private final int horizontalRange
      Mappings:
      Namespace Name Mixin selector
      official h Lawh;h:I
      intermediary field_30140 Lnet/minecraft/class_6030;field_30140:I
      named horizontalRange Lnet/minecraft/entity/ai/brain/task/LongJumpTask;horizontalRange:I
    • maxRange

      private final float maxRange
      Mappings:
      Namespace Name Mixin selector
      official i Lawh;i:F
      intermediary field_30141 Lnet/minecraft/class_6030;field_30141:F
      named maxRange Lnet/minecraft/entity/ai/brain/task/LongJumpTask;maxRange:F
    • targets

      private final List<LongJumpTask.Target> targets
      Mappings:
      Namespace Name Mixin selector
      official j Lawh;j:Ljava/util/List;
      intermediary field_30142 Lnet/minecraft/class_6030;field_30142:Ljava/util/List;
      named targets Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targets:Ljava/util/List;
    • lastPos

      private Optional<Vec3d> lastPos
      Mappings:
      Namespace Name Mixin selector
      official k Lawh;k:Ljava/util/Optional;
      intermediary field_30143 Lnet/minecraft/class_6030;field_30143:Ljava/util/Optional;
      named lastPos Lnet/minecraft/entity/ai/brain/task/LongJumpTask;lastPos:Ljava/util/Optional;
    • lastTarget

      private Optional<LongJumpTask.Target> lastTarget
      Mappings:
      Namespace Name Mixin selector
      official l Lawh;l:Ljava/util/Optional;
      intermediary field_30144 Lnet/minecraft/class_6030;field_30144:Ljava/util/Optional;
      named lastTarget Lnet/minecraft/entity/ai/brain/task/LongJumpTask;lastTarget:Ljava/util/Optional;
    • cooldown

      private int cooldown
      Mappings:
      Namespace Name Mixin selector
      official m Lawh;m:I
      intermediary field_30145 Lnet/minecraft/class_6030;field_30145:I
      named cooldown Lnet/minecraft/entity/ai/brain/task/LongJumpTask;cooldown:I
    • targetTime

      private long targetTime
      Mappings:
      Namespace Name Mixin selector
      official n Lawh;n:J
      intermediary field_30146 Lnet/minecraft/class_6030;field_30146:J
      named targetTime Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targetTime:J
    • field_33460

      private Function<E extends MobEntity,​SoundEvent> field_33460
      Mappings:
      Namespace Name Mixin selector
      official o Lawh;o:Ljava/util/function/Function;
      intermediary field_33460 Lnet/minecraft/class_6030;field_33460:Ljava/util/function/Function;
      named field_33460 Lnet/minecraft/entity/ai/brain/task/LongJumpTask;field_33460:Ljava/util/function/Function;
  • Constructor Details

    • LongJumpTask

      public LongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E,​SoundEvent> function)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawh;<init>(Larm;IIFLjava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_6030;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/LongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
      Overrides:
      shouldRun in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a(Labr;Latv;)Z
      intermediary method_35076 Lnet/minecraft/class_6030;method_35076(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      shouldKeepRunning in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a(Labr;Latv;J)Z
      intermediary method_35077 Lnet/minecraft/class_6030;method_35077(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
    • run

      protected void run(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      run in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lawh;b(Labr;Latv;J)V
      intermediary method_35082 Lnet/minecraft/class_6030;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/LongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, E e, long long2)
      Overrides:
      keepRunning in class Task<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lawh;c(Labr;Latv;J)V
      intermediary method_35083 Lnet/minecraft/class_6030;method_35083(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/LongJumpTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • getRammingVelocity

      private Optional<Vec3d> getRammingVelocity(MobEntity entity, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a(Latv;Ldna;)Ljava/util/Optional;
      intermediary method_35078 Lnet/minecraft/class_6030;method_35078(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;)Ljava/util/Optional;
      named getRammingVelocity Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getRammingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
    • getRammingVelocity

      private Optional<Vec3d> getRammingVelocity(MobEntity entity, Vec3d pos, int range)
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a(Latv;Ldna;I)Ljava/util/Optional;
      intermediary method_35079 Lnet/minecraft/class_6030;method_35079(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;I)Ljava/util/Optional;
      named getRammingVelocity Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getRammingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;I)Ljava/util/Optional;
    • canReach

      private boolean canReach(MobEntity entity, Vec3d startPos, Vec3d endPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lawh;a(Latv;Ldna;Ldna;)Z
      intermediary method_35080 Lnet/minecraft/class_6030;method_35080(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
      named canReach Lnet/minecraft/entity/ai/brain/task/LongJumpTask;canReach(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z