public class PrioritizedGoal extends Goal
| Constructor and Description |
|---|
PrioritizedGoal(int priorityIn,
Goal goalIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
Goal |
getGoal() |
java.util.EnumSet<Goal.Flag> |
getMutexFlags() |
int |
getPriority() |
int |
hashCode() |
boolean |
isPreemptedBy(PrioritizedGoal other) |
boolean |
isPreemptible() |
boolean |
isRunning() |
void |
resetTask() |
void |
setMutexFlags(java.util.EnumSet<Goal.Flag> p_220684_1_) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
public PrioritizedGoal(int priorityIn,
Goal goalIn)
public boolean isPreemptedBy(PrioritizedGoal other)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic boolean isPreemptible()
isPreemptible in class Goalpublic void startExecuting()
startExecuting in class Goalpublic void setMutexFlags(java.util.EnumSet<Goal.Flag> p_220684_1_)
setMutexFlags in class Goalpublic java.util.EnumSet<Goal.Flag> getMutexFlags()
getMutexFlags in class Goalpublic boolean isRunning()
public int getPriority()
public Goal getGoal()
public boolean equals(@Nullable
java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object