Class LongJumpTask<E extends MobEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.LongJumpTask<E>
All Implemented Interfaces:
Task<E>
Direct Known Subclasses:
BiasedLongJumpTask

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

    • MAX_TARGET_SEARCH_TIME

      protected static final int MAX_TARGET_SEARCH_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_TARGET_SEARCH_TIME Lnet/minecraft/entity/ai/brain/task/LongJumpTask;MAX_TARGET_SEARCH_TIME:I
      intermediary field_30135 Lnet/minecraft/class_6030;field_30135:I
      official c Lbzb;c:I
    • JUMP_WINDUP_TIME

      private static final int JUMP_WINDUP_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named JUMP_WINDUP_TIME Lnet/minecraft/entity/ai/brain/task/LongJumpTask;JUMP_WINDUP_TIME:I
      intermediary field_30136 Lnet/minecraft/class_6030;field_30136:I
      official m Lbzb;m:I
    • PATHING_DISTANCE

      protected static final int PATHING_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PATHING_DISTANCE Lnet/minecraft/entity/ai/brain/task/LongJumpTask;PATHING_DISTANCE:I
      intermediary field_30137 Lnet/minecraft/class_6030;field_30137:I
      official d Lbzb;d:I
    • RUN_TIME

      private static final int RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/LongJumpTask;RUN_TIME:I
      intermediary field_30134 Lnet/minecraft/class_6030;field_30134:I
      official n Lbzb;n:I
    • RAM_RANGES

      private static final List<Integer> RAM_RANGES
      Mappings:
      Namespace Name Mixin selector
      named RAM_RANGES Lnet/minecraft/entity/ai/brain/task/LongJumpTask;RAM_RANGES:Ljava/util/List;
      intermediary field_37431 Lnet/minecraft/class_6030;field_37431:Ljava/util/List;
      official o Lbzb;o:Ljava/util/List;
    • cooldownRange

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

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

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

      protected final float maxRange
      Mappings:
      Namespace Name Mixin selector
      named maxRange Lnet/minecraft/entity/ai/brain/task/LongJumpTask;maxRange:F
      intermediary field_30141 Lnet/minecraft/class_6030;field_30141:F
      official g Lbzb;g:F
    • potentialTargets

      protected List<LongJumpTask.Target> potentialTargets
      Mappings:
      Namespace Name Mixin selector
      named potentialTargets Lnet/minecraft/entity/ai/brain/task/LongJumpTask;potentialTargets:Ljava/util/List;
      intermediary field_30142 Lnet/minecraft/class_6030;field_30142:Ljava/util/List;
      official h Lbzb;h:Ljava/util/List;
    • startPos

      protected Optional<Vec3d> startPos
      Mappings:
      Namespace Name Mixin selector
      named startPos Lnet/minecraft/entity/ai/brain/task/LongJumpTask;startPos:Ljava/util/Optional;
      intermediary field_30143 Lnet/minecraft/class_6030;field_30143:Ljava/util/Optional;
      official i Lbzb;i:Ljava/util/Optional;
    • currentTarget

      @Nullable protected @Nullable Vec3d currentTarget
      Mappings:
      Namespace Name Mixin selector
      named currentTarget Lnet/minecraft/entity/ai/brain/task/LongJumpTask;currentTarget:Lnet/minecraft/util/math/Vec3d;
      intermediary field_30144 Lnet/minecraft/class_6030;field_30144:Lnet/minecraft/class_243;
      official j Lbzb;j:Lfbx;
    • targetSearchTime

      protected int targetSearchTime
      Mappings:
      Namespace Name Mixin selector
      named targetSearchTime Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targetSearchTime:I
      intermediary field_30145 Lnet/minecraft/class_6030;field_30145:I
      official k Lbzb;k:I
    • targetPickedTime

      protected long targetPickedTime
      Mappings:
      Namespace Name Mixin selector
      named targetPickedTime Lnet/minecraft/entity/ai/brain/task/LongJumpTask;targetPickedTime:J
      intermediary field_30146 Lnet/minecraft/class_6030;field_30146:J
      official l Lbzb;l:J
    • entityToSound

      private final Function<E extends MobEntity,SoundEvent> entityToSound
      Mappings:
      Namespace Name Mixin selector
      named entityToSound Lnet/minecraft/entity/ai/brain/task/LongJumpTask;entityToSound:Ljava/util/function/Function;
      intermediary field_33460 Lnet/minecraft/class_6030;field_33460:Ljava/util/function/Function;
      official q Lbzb;q:Ljava/util/function/Function;
    • jumpToPredicate

      private final BiPredicate<E extends MobEntity,BlockPos> jumpToPredicate
      Mappings:
      Namespace Name Mixin selector
      named jumpToPredicate Lnet/minecraft/entity/ai/brain/task/LongJumpTask;jumpToPredicate:Ljava/util/function/BiPredicate;
      intermediary field_37432 Lnet/minecraft/class_6030;field_37432:Ljava/util/function/BiPredicate;
      official r Lbzb;r:Ljava/util/function/BiPredicate;
  • Constructor Details

    • LongJumpTask

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

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

    • shouldJumpTo

      public static <E extends MobEntity> boolean shouldJumpTo(E entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named shouldJumpTo Lnet/minecraft/entity/ai/brain/task/LongJumpTask;shouldJumpTo(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_45333 Lnet/minecraft/class_6030;method_45333(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Z
      official a Lbzb;a(Lbwh;Ljh;)Z
    • shouldRun

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

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

      protected void run(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class MultiTickTask<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/entity/ai/brain/task/LongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_35082 Lnet/minecraft/class_6030;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official a Lbzb;a(Lash;Lbwh;J)V
    • keepRunning

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

      protected void pickTarget(ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      named pickTarget Lnet/minecraft/entity/ai/brain/task/LongJumpTask;pickTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
      intermediary method_41342 Lnet/minecraft/class_6030;method_41342(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      official d Lbzb;d(Lash;Lbwh;J)V
    • removeRandomTarget

      protected Optional<LongJumpTask.Target> removeRandomTarget(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named removeRandomTarget Lnet/minecraft/entity/ai/brain/task/LongJumpTask;removeRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;
      intermediary method_41336 Lnet/minecraft/class_6030;method_41336(Lnet/minecraft/class_3218;)Ljava/util/Optional;
      official a Lbzb;a(Lash;)Ljava/util/Optional;
    • canJumpTo

      private boolean canJumpTo(ServerWorld world, E entity, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named canJumpTo Lnet/minecraft/entity/ai/brain/task/LongJumpTask;canJumpTo(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_41337 Lnet/minecraft/class_6030;method_41337(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Z
      official a Lbzb;a(Lash;Lbwh;Ljh;)Z
    • getJumpingVelocity

      @Nullable protected @Nullable Vec3d getJumpingVelocity(MobEntity entity, Vec3d targetPos)
      Mappings:
      Namespace Name Mixin selector
      named getJumpingVelocity Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getJumpingVelocity(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_35078 Lnet/minecraft/class_6030;method_35078(Lnet/minecraft/class_1308;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      official a Lbzb;a(Lbwh;Lfbx;)Lfbx;