public class TridentAiHandler extends Object implements AiHandler
Constructor and Description |
---|
TridentAiHandler() |
Modifier and Type | Method and Description |
---|---|
AiModule |
defaultAiFor(EntityType type)
Returns the AI Module that is the default for a certain type of entity
|
AiModule |
nativeAIFor(EntityType type)
Returns the server's implementation of the AI for a given entity type
|
void |
setDefaultAiFor(EntityType type,
AiModule module)
Sets the AI for this entity type, used to provide a separate AiModule for
Entities
|
public TridentAiHandler()
public AiModule defaultAiFor(EntityType type)
AiHandler
defaultAiFor
in interface AiHandler
public void setDefaultAiFor(EntityType type, AiModule module)
AiHandler
Entities of this type in the world will immediately start using this
AiModule
, even if they were
created before this was set.
setDefaultAiFor
in interface AiHandler
type
- the type of entity to replace the AI formodule
- the new AiModule to usepublic AiModule nativeAIFor(EntityType type)
AiHandler
nativeAIFor
in interface AiHandler
type
- the type of entity to request the AI forCopyright © 2016. All rights reserved.