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
named net/minecraft/entity/ai/goal/PrioritizedGoal
intermediary net/minecraft/class_4135
official ccc
  • Field Details

    • goal

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

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

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

    • PrioritizedGoal

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

    • canBeReplacedBy

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

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

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

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

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

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      official d Lcao;d()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
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      official R_ Lcao;R_()Z
    • getTickCount

      protected int getTickCount(int ticks)
      Returns how many times a goal can tick in the given at most.
      Overrides:
      getTickCount in class Goal
      Returns:
      how many times a goal can tick in the given at most
      Mappings:
      Namespace Name Mixin selector
      named getTickCount Lnet/minecraft/entity/ai/goal/Goal;getTickCount(I)I
      intermediary method_38847 Lnet/minecraft/class_1352;method_38847(I)I
      official a Lcao;a(I)I
    • tick

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

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

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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object