Package net.minecraft.entity.ai.goal
Class GoalSelector
- java.lang.Object
-
- net.minecraft.entity.ai.goal.GoalSelector
-
public class GoalSelector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<PrioritizedGoal>
availableGoals
private java.util.EnumSet<Goal.Flag>
disabledFlags
private java.util.Map<Goal.Flag,PrioritizedGoal>
lockedFlags
private static org.apache.logging.log4j.Logger
LOGGER
private int
newGoalRate
private static PrioritizedGoal
NO_GOAL
private java.util.function.Supplier<IProfiler>
profiler
-
Constructor Summary
Constructors Constructor Description GoalSelector(java.util.function.Supplier<IProfiler> p_i231546_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGoal(int p_75776_1_, Goal p_75776_2_)
void
disableControlFlag(Goal.Flag p_220880_1_)
void
enableControlFlag(Goal.Flag p_220886_1_)
java.util.stream.Stream<PrioritizedGoal>
getRunningGoals()
void
removeGoal(Goal p_85156_1_)
void
setControlFlag(Goal.Flag p_220878_1_, boolean p_220878_2_)
void
tick()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
NO_GOAL
private static final PrioritizedGoal NO_GOAL
-
lockedFlags
private final java.util.Map<Goal.Flag,PrioritizedGoal> lockedFlags
-
availableGoals
private final java.util.Set<PrioritizedGoal> availableGoals
-
profiler
private final java.util.function.Supplier<IProfiler> profiler
-
disabledFlags
private final java.util.EnumSet<Goal.Flag> disabledFlags
-
newGoalRate
private int newGoalRate
-
-
Constructor Detail
-
GoalSelector
public GoalSelector(java.util.function.Supplier<IProfiler> p_i231546_1_)
-
-
Method Detail
-
addGoal
public void addGoal(int p_75776_1_, Goal p_75776_2_)
-
removeGoal
public void removeGoal(Goal p_85156_1_)
-
tick
public void tick()
-
getRunningGoals
public java.util.stream.Stream<PrioritizedGoal> getRunningGoals()
-
disableControlFlag
public void disableControlFlag(Goal.Flag p_220880_1_)
-
enableControlFlag
public void enableControlFlag(Goal.Flag p_220886_1_)
-
setControlFlag
public void setControlFlag(Goal.Flag p_220878_1_, boolean p_220878_2_)
-
-