Class BiasedLongJumpTask<E extends MobEntity>

All Implemented Interfaces:
Task<E>

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

    • favoredBlocks

      private final TagKey<Block> favoredBlocks
      Mappings:
      Namespace Name Mixin selector
      official m Lblz;m:Laqh;
      intermediary field_37427 Lnet/minecraft/class_7096;field_37427:Lnet/minecraft/class_6862;
      named favoredBlocks Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;favoredBlocks:Lnet/minecraft/registry/tag/TagKey;
    • biasChance

      private final float biasChance
      Mappings:
      Namespace Name Mixin selector
      official n Lblz;n:F
      intermediary field_37428 Lnet/minecraft/class_7096;field_37428:F
      named biasChance Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;biasChance:F
    • unfavoredTargets

      private final List<LongJumpTask.Target> unfavoredTargets
      Mappings:
      Namespace Name Mixin selector
      official o Lblz;o:Ljava/util/List;
      intermediary field_37429 Lnet/minecraft/class_7096;field_37429:Ljava/util/List;
      named unfavoredTargets Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;unfavoredTargets:Ljava/util/List;
    • useBias

      private boolean useBias
      Mappings:
      Namespace Name Mixin selector
      official p Lblz;p:Z
      intermediary field_37430 Lnet/minecraft/class_7096;field_37430:Z
      named useBias Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;useBias:Z
  • Constructor Details

    • BiasedLongJumpTask

      public BiasedLongJumpTask(UniformIntProvider cooldownRange, int verticalRange, int horizontalRange, float maxRange, Function<E,SoundEvent> entityToSound, TagKey<Block> favoredBlocks, float biasChance, BiPredicate<E,BlockPos> jumpToPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblz;<init>(Lbgj;IIFLjava/util/function/Function;Laqh;FLjava/util/function/BiPredicate;)V
      intermediary <init> Lnet/minecraft/class_7096;<init>(Lnet/minecraft/class_6019;IIFLjava/util/function/Function;Lnet/minecraft/class_6862;FLjava/util/function/BiPredicate;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;IIFLjava/util/function/Function;Lnet/minecraft/registry/tag/TagKey;FLjava/util/function/BiPredicate;)V
  • Method Details

    • run

      protected void run(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class LongJumpTask<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official method_35082 Lblz;method_35082(Lakq;Lbji;J)V
      intermediary method_35082 Lnet/minecraft/class_7096;method_35082(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/BiasedLongJumpTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • getTarget

      protected Optional<LongJumpTask.Target> getTarget(ServerWorld world)
      Overrides:
      getTarget in class LongJumpTask<E extends MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbma;a(Lakq;)Ljava/util/Optional;
      intermediary method_41336 Lnet/minecraft/class_6030;method_41336(Lnet/minecraft/class_3218;)Ljava/util/Optional;
      named getTarget Lnet/minecraft/entity/ai/brain/task/LongJumpTask;getTarget(Lnet/minecraft/server/world/ServerWorld;)Ljava/util/Optional;