Class RamImpactTask

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<GoatEntity>
net.minecraft.entity.ai.brain.task.RamImpactTask
All Implemented Interfaces:
Task<GoatEntity>

public class RamImpactTask extends MultiTickTask<GoatEntity>
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/RamImpactTask
intermediary net/minecraft/class_6338
official bwz
  • Field Details

    • RUN_TIME

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

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

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

      private final TargetPredicate targetPredicate
      Mappings:
      Namespace Name Mixin selector
      named targetPredicate Lnet/minecraft/entity/ai/brain/task/RamImpactTask;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
      intermediary field_33477 Lnet/minecraft/class_6338;field_33477:Lnet/minecraft/class_4051;
      official f Lbwz;f:Lceh;
    • speed

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

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

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

      private final Function<GoatEntity,SoundEvent> impactSoundFactory
      Mappings:
      Namespace Name Mixin selector
      named impactSoundFactory Lnet/minecraft/entity/ai/brain/task/RamImpactTask;impactSoundFactory:Ljava/util/function/Function;
      intermediary field_33482 Lnet/minecraft/class_6338;field_33482:Ljava/util/function/Function;
      official j Lbwz;j:Ljava/util/function/Function;
    • hornBreakSoundFactory

      private final Function<GoatEntity,SoundEvent> hornBreakSoundFactory
      Mappings:
      Namespace Name Mixin selector
      named hornBreakSoundFactory Lnet/minecraft/entity/ai/brain/task/RamImpactTask;hornBreakSoundFactory:Ljava/util/function/Function;
      intermediary field_39044 Lnet/minecraft/class_6338;field_39044:Ljava/util/function/Function;
      official k Lbwz;k:Ljava/util/function/Function;
  • Constructor Details

    • RamImpactTask

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

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, GoatEntity goatEntity)
      Overrides:
      shouldRun in class MultiTickTask<GoatEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldRun Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Z
      intermediary method_36277 Lnet/minecraft/class_6338;method_36277(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Z
      official a Lbwz;a(Larf;Lchg;)Z
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, GoatEntity goatEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<GoatEntity>
      Mappings:
      Namespace Name Mixin selector
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)Z
      intermediary method_36278 Lnet/minecraft/class_6338;method_36278(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)Z
      official a Lbwz;a(Larf;Lchg;J)Z
    • run

      protected void run(ServerWorld serverWorld, GoatEntity goatEntity, long long2)
      Overrides:
      run in class MultiTickTask<GoatEntity>
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/entity/ai/brain/task/RamImpactTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)V
      intermediary method_36280 Lnet/minecraft/class_6338;method_36280(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)V
      official b Lbwz;b(Larf;Lchg;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, GoatEntity goatEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<GoatEntity>
      Mappings:
      Namespace Name Mixin selector
      named keepRunning Lnet/minecraft/entity/ai/brain/task/RamImpactTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)V
      intermediary method_36281 Lnet/minecraft/class_6338;method_36281(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)V
      official c Lbwz;c(Larf;Lchg;J)V
    • shouldSnapHorn

      private boolean shouldSnapHorn(ServerWorld world, GoatEntity goat)
      Mappings:
      Namespace Name Mixin selector
      named shouldSnapHorn Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldSnapHorn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Z
      intermediary method_43535 Lnet/minecraft/class_6338;method_43535(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Z
      official c Lbwz;c(Larf;Lchg;)Z
    • finishRam

      protected void finishRam(ServerWorld world, GoatEntity goat)
      Mappings:
      Namespace Name Mixin selector
      named finishRam Lnet/minecraft/entity/ai/brain/task/RamImpactTask;finishRam(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)V
      intermediary method_36279 Lnet/minecraft/class_6338;method_36279(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)V
      official b Lbwz;b(Larf;Lchg;)V