Class GoalSelector

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

public class GoalSelector extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • addGoal

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

      public void removeAllGoals(Predicate<Goal> p_262575_)
    • 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()
    • 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_)