Class ZombieAttackGoal

Direct Known Subclasses:
DrownedEntity.DrownedAttackGoal

public class ZombieAttackGoal extends MeleeAttackGoal
Mappings:
Namespace Name
official bdg
intermediary net/minecraft/class_1396
named net/minecraft/entity/ai/goal/ZombieAttackGoal
  • Field Details

    • zombie

      private final ZombieEntity zombie
      Mappings:
      Namespace Name Mixin selector
      official b Lbdg;b:Lbku;
      intermediary field_6628 Lnet/minecraft/class_1396;field_6628:Lnet/minecraft/class_1642;
      named zombie Lnet/minecraft/entity/ai/goal/ZombieAttackGoal;zombie:Lnet/minecraft/entity/mob/ZombieEntity;
    • ticks

      private int ticks
      Mappings:
      Namespace Name Mixin selector
      official c Lbdg;c:I
      intermediary field_6627 Lnet/minecraft/class_1396;field_6627:I
      named ticks Lnet/minecraft/entity/ai/goal/ZombieAttackGoal;ticks:I
  • Constructor Details

    • ZombieAttackGoal

      public ZombieAttackGoal(ZombieEntity zombie, double speed, boolean pauseWhenMobIdle)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdg;<init>(Lbku;DZ)V
      intermediary <init> Lnet/minecraft/class_1396;<init>(Lnet/minecraft/class_1642;DZ)V
      named <init> Lnet/minecraft/entity/ai/goal/ZombieAttackGoal;<init>(Lnet/minecraft/entity/mob/ZombieEntity;DZ)V
  • Method Details

    • start

      public void start()
      Overrides:
      start in class MeleeAttackGoal
      Mappings:
      Namespace Name Mixin selector
      official c Lbbs;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class MeleeAttackGoal
      Mappings:
      Namespace Name Mixin selector
      official d Lbbs;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • shouldRunEveryTick

      public boolean shouldRunEveryTick()
      Returns if the goal should run every tick or not.

      This returns false by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.

      Overrides:
      shouldRunEveryTick in class Goal
      Returns:
      if the goal should run every tick or not
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbbs;f()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
    • tick

      public void tick()
      Overrides:
      tick in class MeleeAttackGoal
      Mappings:
      Namespace Name Mixin selector
      official e Lbbs;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V