public class EntityDirector extends Object
| Constructor and Description |
|---|
EntityDirector() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<String> |
getEntityMobStateTask(org.bukkit.entity.EntityType entity,
MobState state)
Returns all registered task names for the given entity and mob state.
|
static Class<? extends EntityTask> |
getEntityTask(String name)
Returns the class registered for a given task name.
|
static void |
registerEntityMobState(org.bukkit.entity.EntityType entity,
MobState state,
@NonNls String task)
Registers a task name for the given entity and mob state.
|
static void |
registerEntityTask(@NonNls String name,
Class<? extends EntityTask> task)
Registers a class for a given task name.
|
public static void registerEntityMobState(org.bukkit.entity.EntityType entity,
MobState state,
@NonNls
@NonNls String task)
entity - an entity typestate - a mob statetask - the name of a taskpublic static Collection<String> getEntityMobStateTask(org.bukkit.entity.EntityType entity, MobState state)
entity - an entity typestate - a mob statepublic static void registerEntityTask(@NonNls
@NonNls String name,
Class<? extends EntityTask> task)
name - the task name that can subsequently be passed to registerEntityMobState(org.bukkit.entity.EntityType, net.glowstone.entity.ai.MobState, java.lang.String)
to invoke this tasktask - the class that implements the taskpublic static Class<? extends EntityTask> getEntityTask(String name)
name - the task name that can subsequently be passed to registerEntityMobState(org.bukkit.entity.EntityType, net.glowstone.entity.ai.MobState, java.lang.String)
to invoke this taskCopyright © 2021. All rights reserved.