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 bwc
  • Constructor Details

    • MeleeAttackTask

      public MeleeAttackTask()
  • Method Details

    • create

      public static SingleTickTask<MobEntity> 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 Lbwc;a(I)Lbwg;
    • 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 Lbwc;a(Lbte;)Z