public abstract class EntityAIBase
extends java.lang.Object
Constructor and Description |
---|
EntityAIBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
int |
getMutexBits()
Get a bitmask telling which other tasks may not run concurrently.
|
boolean |
isInterruptible()
Determine if this AI Task is interruptible by a higher (= lower value) priority task.
|
void |
resetTask()
Resets the task
|
void |
setMutexBits(int mutexBitsIn)
Sets a bitmask telling which other tasks may not run concurrently.
|
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()
Updates the task
|
public abstract boolean shouldExecute()
public boolean continueExecuting()
public boolean isInterruptible()
public void startExecuting()
public void resetTask()
public void updateTask()
public void setMutexBits(int mutexBitsIn)
public int getMutexBits()