Class GoalSelector
java.lang.Object
net.minecraft.world.entity.ai.goal.GoalSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set
<WrappedGoal> private final Map
<Goal.Flag, WrappedGoal> private static final WrappedGoal
private final Supplier
<ProfilerFiller> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
disableControlFlag
(Goal.Flag p_25356_) void
enableControlFlag
(Goal.Flag p_25375_) private static boolean
goalCanBeReplacedForAllFlags
(WrappedGoal p_186079_, Map<Goal.Flag, WrappedGoal> p_186080_) private static boolean
goalContainsAnyFlags
(WrappedGoal p_186076_, EnumSet<Goal.Flag> p_186077_) void
removeAllGoals
(Predicate<Goal> p_262575_) void
removeGoal
(Goal p_25364_) void
setControlFlag
(Goal.Flag p_25361_, boolean p_25362_) void
tick()
void
tickRunningGoals
(boolean p_186082_)
-
Field Details
-
NO_GOAL
-
lockedFlags
-
availableGoals
-
profiler
-
disabledFlags
-
-
Constructor Details
-
GoalSelector
-
-
Method Details
-
addGoal
-
removeAllGoals
-
removeGoal
-
goalContainsAnyFlags
-
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
-
disableControlFlag
-
enableControlFlag
-
setControlFlag
-