Class GoalSelector


  • public class GoalSelector
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • availableGoals

        private final java.util.Set<PrioritizedGoal> availableGoals
      • profiler

        private final java.util.function.Supplier<IProfiler> profiler
      • disabledFlags

        private final java.util.EnumSet<Goal.Flag> disabledFlags
      • newGoalRate

        private int newGoalRate
    • Constructor Detail

      • GoalSelector

        public GoalSelector​(java.util.function.Supplier<IProfiler> p_i231546_1_)
    • Method Detail

      • addGoal

        public void addGoal​(int p_75776_1_,
                            Goal p_75776_2_)
      • removeGoal

        public void removeGoal​(Goal p_85156_1_)
      • tick

        public void tick()
      • getRunningGoals

        public java.util.stream.Stream<PrioritizedGoal> getRunningGoals()
      • disableControlFlag

        public void disableControlFlag​(Goal.Flag p_220880_1_)
      • enableControlFlag

        public void enableControlFlag​(Goal.Flag p_220886_1_)
      • setControlFlag

        public void setControlFlag​(Goal.Flag p_220878_1_,
                                   boolean p_220878_2_)