Package | Description |
---|---|
net.glowstone.entity.ai |
Modifier and Type | Class and Description |
---|---|
class |
FollowPlayerTask |
class |
LookAroundTask |
class |
LookAtPlayerTask |
Modifier and Type | Method and Description |
---|---|
EntityTask |
TaskManager.getNewTask(String name)
Returns a new instance of the task with a given name.
|
EntityTask |
TaskManager.getTask(Class<? extends EntityTask> clazz)
Returns the existing task whose class is exactly a given class (and not a subclass -- this
will always return null for an abstract type).
|
EntityTask |
TaskManager.getTask(String name)
Returns the existing task with a given name.
|
Modifier and Type | Method and Description |
---|---|
static Class<? extends EntityTask> |
EntityDirector.getEntityTask(String name)
Returns the class registered for a given task name.
|
Modifier and Type | Method and Description |
---|---|
void |
TaskManager.addTask(EntityTask task)
Add the given task, replacing any existing task with the same name.
|
void |
TaskManager.cancel(EntityTask task)
Cancels and unregisters the given task.
|
int |
EntityTask.compareTo(EntityTask other) |
Modifier and Type | Method and Description |
---|---|
EntityTask |
TaskManager.getTask(Class<? extends EntityTask> clazz)
Returns the existing task whose class is exactly a given class (and not a subclass -- this
will always return null for an abstract type).
|
static void |
EntityDirector.registerEntityTask(@NonNls String name,
Class<? extends EntityTask> task)
Registers a class for a given task name.
|
Copyright © 2021. All rights reserved.