public abstract class EntityAIBase
extends java.lang.Object
Constructor and Description |
---|
EntityAIBase() |
Modifier and Type | Method and Description |
---|---|
int |
getMutexBits()
Get what actions this task will take that may potentially conflict with other tasks.
|
boolean |
isInterruptible()
Determine if this AI Task is interruptible by a higher (= lower value) priority task.
|
void |
resetTask()
Reset the task's internal state.
|
void |
setMutexBits(int mutexBitsIn)
Sets the mutex bitflags, see getMutexBits.
|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
abstract boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Keep ticking a continuous task that has already been started
|
public abstract boolean shouldExecute()
public boolean shouldContinueExecuting()
public boolean isInterruptible()
public void startExecuting()
public void resetTask()
public void updateTask()
public void setMutexBits(int mutexBitsIn)
public int getMutexBits()