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 org.slf4j.Logger
private int
private static final WrappedGoal
private final Supplier<ProfilerFiller>
private int
-
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
setNewGoalRate
(int p_148098_) void
tick()
void
tickRunningGoals
(boolean p_186082_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_GOAL
-
lockedFlags
-
availableGoals
-
profiler
-
disabledFlags
-
tickCount
private int tickCount -
newGoalRate
private int newGoalRate
-
-
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
-
getRunningGoals
-
setNewGoalRate
public void setNewGoalRate(int p_148098_) -
disableControlFlag
-
enableControlFlag
-
setControlFlag
-