Class PrioritizedGoal


  • public class PrioritizedGoal
    extends Goal
    • Field Detail

      • goal

        private final Goal goal
      • priority

        private final int priority
      • isRunning

        private boolean isRunning
    • Constructor Detail

      • PrioritizedGoal

        public PrioritizedGoal​(int p_i50318_1_,
                               Goal p_i50318_2_)
    • Method Detail

      • canBeReplacedBy

        public boolean canBeReplacedBy​(PrioritizedGoal p_220771_1_)
      • canUse

        public boolean canUse()
        Specified by:
        canUse 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​(java.util.EnumSet<Goal.Flag> p_220684_1_)
        Overrides:
        setFlags in class Goal
      • isRunning

        public boolean isRunning()
      • getPriority

        public int getPriority()
      • getGoal

        public Goal getGoal()
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object