Class MeleeAttackTask

java.lang.Object
net.minecraft.entity.ai.brain.task.MeleeAttackTask

public class MeleeAttackTask extends Object
Mappings:
Namespace Name
named net/minecraft/entity/ai/brain/task/MeleeAttackTask
intermediary net/minecraft/class_4816
official bzf
  • Constructor Details

    • MeleeAttackTask

      public MeleeAttackTask()
  • Method Details

    • create

      public static <T extends MobEntity> SingleTickTask<T> create(int cooldown)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;create(I)Lnet/minecraft/entity/ai/brain/task/SingleTickTask;
      intermediary method_46987 Lnet/minecraft/class_4816;method_46987(I)Lnet/minecraft/class_7894;
      official a Lbzf;a(I)Lbzj;
    • create

      public static <T extends MobEntity> SingleTickTask<T> create(Predicate<T> targetPredicate, int cooldown)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;create(Ljava/util/function/Predicate;I)Lnet/minecraft/entity/ai/brain/task/SingleTickTask;
      intermediary method_64622 Lnet/minecraft/class_4816;method_64622(Ljava/util/function/Predicate;I)Lnet/minecraft/class_7894;
      official a Lbzf;a(Ljava/util/function/Predicate;I)Lbzj;
    • isHoldingUsableRangedWeapon

      private static boolean isHoldingUsableRangedWeapon(MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      named isHoldingUsableRangedWeapon Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;isHoldingUsableRangedWeapon(Lnet/minecraft/entity/mob/MobEntity;)Z
      intermediary method_25942 Lnet/minecraft/class_4816;method_25942(Lnet/minecraft/class_1308;)Z
      official a Lbzf;a(Lbwh;)Z