Class RevengeGoal

Direct Known Subclasses:
ZombiePigmanEntity.AvoidZombiesGoal

public class RevengeGoal extends TrackTargetGoal
Mappings:
Namespace Name
official uv
intermediary net/minecraft/class_926
named net/minecraft/entity/ai/goal/RevengeGoal
  • Field Details

    • groupRevenge

      private final boolean groupRevenge
      Mappings:
      Namespace Name Mixin selector
      official a Luv;a:Z
      intermediary field_3624 Lnet/minecraft/class_926;field_3624:Z
      named groupRevenge Lnet/minecraft/entity/ai/goal/RevengeGoal;groupRevenge:Z
    • lastAttackedTime

      private int lastAttackedTime
      Mappings:
      Namespace Name Mixin selector
      official b Luv;b:I
      intermediary field_6867 Lnet/minecraft/class_926;field_6867:I
      named lastAttackedTime Lnet/minecraft/entity/ai/goal/RevengeGoal;lastAttackedTime:I
    • noRevengeTypes

      private final Class<?>[] noRevengeTypes
      Mappings:
      Namespace Name Mixin selector
      official c Luv;c:[Ljava/lang/Class;
      intermediary field_11949 Lnet/minecraft/class_926;field_11949:[Ljava/lang/Class;
      named noRevengeTypes Lnet/minecraft/entity/ai/goal/RevengeGoal;noRevengeTypes:[Ljava/lang/Class;
  • Constructor Details

    • RevengeGoal

      public RevengeGoal(PathAwareEntity mob, boolean groupRevenge, Class<?>[] noRevengeTypes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Luv;<init>(Lsh;Z[Ljava/lang/Class;)V
      intermediary <init> Lnet/minecraft/class_926;<init>(Lnet/minecraft/class_877;Z[Ljava/lang/Class;)V
      named <init> Lnet/minecraft/entity/ai/goal/RevengeGoal;<init>(Lnet/minecraft/entity/PathAwareEntity;Z[Ljava/lang/Class;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Ltk;a()Z
      intermediary method_2742 Lnet/minecraft/class_896;method_2742()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • start

      public void start()
      Overrides:
      start in class TrackTargetGoal
      Mappings:
      Namespace Name Mixin selector
      official c Ltk;c()V
      intermediary method_2747 Lnet/minecraft/class_896;method_2747()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • setMobEntityTarget

      protected void setMobEntityTarget(PathAwareEntity mob, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      official a Luv;a(Lsh;Lsa;)V
      intermediary method_11017 Lnet/minecraft/class_926;method_11017(Lnet/minecraft/class_877;Lnet/minecraft/class_1699;)V
      named setMobEntityTarget Lnet/minecraft/entity/ai/goal/RevengeGoal;setMobEntityTarget(Lnet/minecraft/entity/PathAwareEntity;Lnet/minecraft/entity/LivingEntity;)V