Class PrioritizedGoal

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

public class PrioritizedGoal extends Goal
  • Field Details

    • goal

      private final Goal goal
    • priority

      private final int priority
    • isRunning

      private boolean isRunning
  • Constructor Details

    • PrioritizedGoal

      public PrioritizedGoal(int p_i50318_1_, Goal p_i50318_2_)
  • Method Details

    • canBeReplacedBy

      public boolean canBeReplacedBy(PrioritizedGoal p_220771_1_)
    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • isInterruptable

      public boolean isInterruptable()
      Overrides:
      isInterruptable in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • setFlags

      public void setFlags(EnumSet<Goal.Flag> p_220684_1_)
      Overrides:
      setFlags in class Goal
    • getFlags

      public EnumSet<Goal.Flag> getFlags()
      Overrides:
      getFlags in class Goal
    • isRunning

      public boolean isRunning()
    • getPriority

      public int getPriority()
    • getGoal

      public Goal getGoal()
    • equals

      public boolean equals(@Nullable Object p_equals_1_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object