Class MeleeAttackTask

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

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

    • MeleeAttackTask

      public MeleeAttackTask()
  • Method Details

    • create

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

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