Class GoalSelector

java.lang.Object
net.minecraft.world.entity.ai.goal.GoalSelector

public class GoalSelector extends Object
  • Field Details

    • LOGGER

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

      private static final WrappedGoal NO_GOAL
    • lockedFlags

      private final Map<Goal.Flag,​WrappedGoal> lockedFlags
    • availableGoals

      private final Set<WrappedGoal> availableGoals
    • profiler

      private final Supplier<ProfilerFiller> profiler
    • disabledFlags

      private final EnumSet<Goal.Flag> disabledFlags
    • tickCount

      private int tickCount
    • newGoalRate

      private int newGoalRate
  • Constructor Details

  • Method Details

    • addGoal

      public void addGoal(int p_25353_, Goal p_25354_)
    • removeAllGoals

      public void removeAllGoals()
    • removeGoal

      public void removeGoal(Goal p_25364_)
    • tick

      public void tick()
    • getAvailableGoals

      public Set<WrappedGoal> getAvailableGoals()
    • getRunningGoals

      public Stream<WrappedGoal> getRunningGoals()
    • setNewGoalRate

      public void setNewGoalRate(int p_148098_)
    • disableControlFlag

      public void disableControlFlag(Goal.Flag p_25356_)
    • enableControlFlag

      public void enableControlFlag(Goal.Flag p_25375_)
    • setControlFlag

      public void setControlFlag(Goal.Flag p_25361_, boolean p_25362_)