Class PrioritizedGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.PrioritizedGoal

public class PrioritizedGoal
extends Goal
Mappings:
Namespace Name
official ayn
intermediary net/minecraft/class_4135
named net/minecraft/entity/ai/goal/PrioritizedGoal
  • Field Details

    • goal

      private final Goal goal
      Mappings:
      Namespace Name Mixin selector
      official a Layn;a:Lawx;
      intermediary field_18416 Lnet/minecraft/class_4135;field_18416:Lnet/minecraft/class_1352;
      named goal Lnet/minecraft/entity/ai/goal/PrioritizedGoal;goal:Lnet/minecraft/entity/ai/goal/Goal;
    • priority

      private final int priority
      Mappings:
      Namespace Name Mixin selector
      official b Layn;b:I
      intermediary field_18417 Lnet/minecraft/class_4135;field_18417:I
      named priority Lnet/minecraft/entity/ai/goal/PrioritizedGoal;priority:I
    • running

      private boolean running
      Mappings:
      Namespace Name Mixin selector
      official c Layn;c:Z
      intermediary field_18418 Lnet/minecraft/class_4135;field_18418:Z
      named running Lnet/minecraft/entity/ai/goal/PrioritizedGoal;running:Z
  • Constructor Details

    • PrioritizedGoal

      public PrioritizedGoal​(int priority, Goal goal)
      Mappings:
      Namespace Name Mixin selector
      official <init> Layn;<init>(ILawx;)V
      intermediary <init> Lnet/minecraft/class_4135;<init>(ILnet/minecraft/class_1352;)V
      named <init> Lnet/minecraft/entity/ai/goal/PrioritizedGoal;<init>(ILnet/minecraft/entity/ai/goal/Goal;)V
  • Method Details

    • canBeReplacedBy

      public boolean canBeReplacedBy​(PrioritizedGoal goal)
      Mappings:
      Namespace Name Mixin selector
      official a Layn;a(Layn;)Z
      intermediary method_19055 Lnet/minecraft/class_4135;method_19055(Lnet/minecraft/class_4135;)Z
      named canBeReplacedBy Lnet/minecraft/entity/ai/goal/PrioritizedGoal;canBeReplacedBy(Lnet/minecraft/entity/ai/goal/PrioritizedGoal;)Z
    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lawx;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • canStop

      public boolean canStop()
      Overrides:
      canStop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official E_ Lawx;E_()Z
      intermediary method_6267 Lnet/minecraft/class_1352;method_6267()Z
      named canStop Lnet/minecraft/entity/ai/goal/Goal;canStop()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lawx;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 Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lawx;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

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

      public void setControls​(EnumSet<Goal.Control> controls)
      Overrides:
      setControls in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lawx;a(Ljava/util/EnumSet;)V
      intermediary method_6265 Lnet/minecraft/class_1352;method_6265(Ljava/util/EnumSet;)V
      named setControls Lnet/minecraft/entity/ai/goal/Goal;setControls(Ljava/util/EnumSet;)V
    • getControls

      public EnumSet<Goal.Control> getControls()
      Overrides:
      getControls in class Goal
      Mappings:
      Namespace Name Mixin selector
      official i Lawx;i()Ljava/util/EnumSet;
      intermediary method_6271 Lnet/minecraft/class_1352;method_6271()Ljava/util/EnumSet;
      named getControls Lnet/minecraft/entity/ai/goal/Goal;getControls()Ljava/util/EnumSet;
    • isRunning

      public boolean isRunning()
      Mappings:
      Namespace Name Mixin selector
      official g Layn;g()Z
      intermediary method_19056 Lnet/minecraft/class_4135;method_19056()Z
      named isRunning Lnet/minecraft/entity/ai/goal/PrioritizedGoal;isRunning()Z
    • getPriority

      public int getPriority()
      Mappings:
      Namespace Name Mixin selector
      official h Layn;h()I
      intermediary method_19057 Lnet/minecraft/class_4135;method_19057()I
      named getPriority Lnet/minecraft/entity/ai/goal/PrioritizedGoal;getPriority()I
    • getGoal

      public Goal getGoal()
      Mappings:
      Namespace Name Mixin selector
      official j Layn;j()Lawx;
      intermediary method_19058 Lnet/minecraft/class_4135;method_19058()Lnet/minecraft/class_1352;
      named getGoal Lnet/minecraft/entity/ai/goal/PrioritizedGoal;getGoal()Lnet/minecraft/entity/ai/goal/Goal;
    • equals

      public boolean equals​(@Nullable Object object)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Layn;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_4135;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/entity/ai/goal/PrioritizedGoal;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Layn;hashCode()I
      intermediary hashCode Lnet/minecraft/class_4135;hashCode()I
      named hashCode Lnet/minecraft/entity/ai/goal/PrioritizedGoal;hashCode()I