public class GoalSelector
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.EnumSet<Goal.Flag> |
disabledFlags |
private static PrioritizedGoal |
DUMMY |
private java.util.Map<Goal.Flag,PrioritizedGoal> |
flagGoals |
private java.util.Set<PrioritizedGoal> |
goals |
private static org.apache.logging.log4j.Logger |
LOGGER |
private IProfiler |
profiler |
private int |
tickRate |
Constructor and Description |
---|
GoalSelector(IProfiler p_i50327_1_) |
Modifier and Type | Method and Description |
---|---|
void |
addGoal(int priority,
Goal task) |
void |
disableFlag(Goal.Flag p_220880_1_) |
void |
enableFlag(Goal.Flag p_220886_1_) |
java.util.stream.Stream<PrioritizedGoal> |
getRunningGoals() |
void |
removeGoal(Goal task) |
void |
setFlag(Goal.Flag p_220878_1_,
boolean p_220878_2_) |
void |
tick() |
private static final org.apache.logging.log4j.Logger LOGGER
private static final PrioritizedGoal DUMMY
private final java.util.Map<Goal.Flag,PrioritizedGoal> flagGoals
private final java.util.Set<PrioritizedGoal> goals
private final IProfiler profiler
private final java.util.EnumSet<Goal.Flag> disabledFlags
private int tickRate
public GoalSelector(IProfiler p_i50327_1_)
public void addGoal(int priority, Goal task)
public void removeGoal(Goal task)
public void tick()
public java.util.stream.Stream<PrioritizedGoal> getRunningGoals()
public void disableFlag(Goal.Flag p_220880_1_)
public void enableFlag(Goal.Flag p_220886_1_)
public void setFlag(Goal.Flag p_220878_1_, boolean p_220878_2_)