Package net.citizensnpcs.api.ai.tree
Interface BehaviorRegistry.BehaviorFactory
- Enclosing class:
BehaviorRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(DataKey params, BehaviorRegistry.BehaviorContext context) Creates a behavior instance.
-
Method Details
-
create
Creates a behavior instance.- Parameters:
params- the DataKey containing parameters (may be null)context- the creation context with NPC and scope- Returns:
- the created behavior, or null if creation fails
-