Class GoalSelector

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

public class GoalSelector extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.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_)
    • goalContainsAnyFlags

      private static boolean goalContainsAnyFlags(WrappedGoal p_186076_, EnumSet<Goal.Flag> p_186077_)
    • goalCanBeReplacedForAllFlags

      private static boolean goalCanBeReplacedForAllFlags(WrappedGoal p_186079_, Map<Goal.Flag,WrappedGoal> p_186080_)
    • tick

      public void tick()
    • tickRunningGoals

      public void tickRunningGoals(boolean p_186082_)
    • 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_)