Class GoalSelector
java.lang.Object
net.minecraft.world.entity.ai.goal.GoalSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate Set<WrappedGoal>
private Map<Goal.Flag,WrappedGoal>
private static org.apache.logging.log4j.Logger
private int
private static WrappedGoal
private Supplier<ProfilerFiller>
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
disableControlFlag(Goal.Flag p_25356_)
void
enableControlFlag(Goal.Flag p_25375_)
void
void
removeGoal(Goal p_25364_)
void
setControlFlag(Goal.Flag p_25361_, boolean p_25362_)
void
setNewGoalRate(int p_148098_)
void
tick()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
NO_GOAL
-
lockedFlags
-
availableGoals
-
profiler
-
disabledFlags
-
tickCount
private int tickCount -
newGoalRate
private int newGoalRate
-
-
Constructor Details
-
GoalSelector
-
-
Method Details
-
addGoal
-
removeAllGoals
public void removeAllGoals() -
removeGoal
-
tick
public void tick() -
getAvailableGoals
-
getRunningGoals
-
setNewGoalRate
public void setNewGoalRate(int p_148098_) -
disableControlFlag
-
enableControlFlag
-
setControlFlag
-