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 bwr
  • 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 Lbwr;a(I)Lbwv;
    • 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 Lbwr;a(Lbtt;)Z