Class RamImpactTask<E extends PathAwareEntity>

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

public class RamImpactTask<E extends PathAwareEntity> extends Task<E>
Mappings:
Namespace Name
official aws
intermediary net/minecraft/class_6338
named net/minecraft/entity/ai/brain/task/RamImpactTask
  • Field Details

    • RUN_TIME

      public static final int RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Laws;a:I
      intermediary field_33474 Lnet/minecraft/class_6338;field_33474:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/RamImpactTask;RUN_TIME:I
    • SPEED_STRENGTH_MULTIPLIER

      public static final float SPEED_STRENGTH_MULTIPLIER
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Laws;c:F
      intermediary field_33475 Lnet/minecraft/class_6338;field_33475:F
      named SPEED_STRENGTH_MULTIPLIER Lnet/minecraft/entity/ai/brain/task/RamImpactTask;SPEED_STRENGTH_MULTIPLIER:F
    • cooldownRangeFactory

      private final Function<E extends PathAwareEntity,UniformIntProvider> cooldownRangeFactory
      Mappings:
      Namespace Name Mixin selector
      official d Laws;d:Ljava/util/function/Function;
      intermediary field_33476 Lnet/minecraft/class_6338;field_33476:Ljava/util/function/Function;
      named cooldownRangeFactory Lnet/minecraft/entity/ai/brain/task/RamImpactTask;cooldownRangeFactory:Ljava/util/function/Function;
    • targetPredicate

      private final TargetPredicate targetPredicate
      Mappings:
      Namespace Name Mixin selector
      official e Laws;e:Lbcz;
      intermediary field_33477 Lnet/minecraft/class_6338;field_33477:Lnet/minecraft/class_4051;
      named targetPredicate Lnet/minecraft/entity/ai/brain/task/RamImpactTask;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
    • damage

      private final ToIntFunction<E extends PathAwareEntity> damage
      Mappings:
      Namespace Name Mixin selector
      official f Laws;f:Ljava/util/function/ToIntFunction;
      intermediary field_33478 Lnet/minecraft/class_6338;field_33478:Ljava/util/function/ToIntFunction;
      named damage Lnet/minecraft/entity/ai/brain/task/RamImpactTask;damage:Ljava/util/function/ToIntFunction;
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official g Laws;g:F
      intermediary field_33479 Lnet/minecraft/class_6338;field_33479:F
      named speed Lnet/minecraft/entity/ai/brain/task/RamImpactTask;speed:F
    • strengthMultiplierFactory

      private final ToDoubleFunction<E extends PathAwareEntity> strengthMultiplierFactory
      Mappings:
      Namespace Name Mixin selector
      official h Laws;h:Ljava/util/function/ToDoubleFunction;
      intermediary field_33480 Lnet/minecraft/class_6338;field_33480:Ljava/util/function/ToDoubleFunction;
      named strengthMultiplierFactory Lnet/minecraft/entity/ai/brain/task/RamImpactTask;strengthMultiplierFactory:Ljava/util/function/ToDoubleFunction;
    • direction

      private Vec3d direction
      Mappings:
      Namespace Name Mixin selector
      official i Laws;i:Ldna;
      intermediary field_33481 Lnet/minecraft/class_6338;field_33481:Lnet/minecraft/class_243;
      named direction Lnet/minecraft/entity/ai/brain/task/RamImpactTask;direction:Lnet/minecraft/util/math/Vec3d;
    • soundFactory

      private final Function<E extends PathAwareEntity,SoundEvent> soundFactory
      Mappings:
      Namespace Name Mixin selector
      official j Laws;j:Ljava/util/function/Function;
      intermediary field_33482 Lnet/minecraft/class_6338;field_33482:Ljava/util/function/Function;
      named soundFactory Lnet/minecraft/entity/ai/brain/task/RamImpactTask;soundFactory:Ljava/util/function/Function;
  • Constructor Details

    • RamImpactTask

      public RamImpactTask(Function<E,UniformIntProvider> cooldownRangeFactory, TargetPredicate targetPredicate, ToIntFunction<E> damage, float speed, ToDoubleFunction<E> strengthMultiplierFactory, Function<E,SoundEvent> soundFactory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laws;<init>(Ljava/util/function/Function;Lbcz;Ljava/util/function/ToIntFunction;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_6338;<init>(Ljava/util/function/Function;Lnet/minecraft/class_4051;Ljava/util/function/ToIntFunction;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/RamImpactTask;<init>(Ljava/util/function/Function;Lnet/minecraft/entity/ai/TargetPredicate;Ljava/util/function/ToIntFunction;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<E extends PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laws;a(Labr;Lauc;)Z
      intermediary method_36277 Lnet/minecraft/class_6338;method_36277(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      shouldKeepRunning in class Task<E extends PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laws;a(Labr;Lauc;J)Z
      intermediary method_36278 Lnet/minecraft/class_6338;method_36278(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<E extends PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Laws;b(Labr;Lauc;J)V
      intermediary method_36280 Lnet/minecraft/class_6338;method_36280(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/RamImpactTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, E e, long long2)
      Overrides:
      keepRunning in class Task<E extends PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Laws;c(Labr;Lauc;J)V
      intermediary method_36281 Lnet/minecraft/class_6338;method_36281(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/RamImpactTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • finishRam

      protected void finishRam(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      official b Laws;b(Labr;Lauc;)V
      intermediary method_36279 Lnet/minecraft/class_6338;method_36279(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)V
      named finishRam Lnet/minecraft/entity/ai/brain/task/RamImpactTask;finishRam(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)V