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.

@FunctionalInterface public static interface BehaviorRegistry.BehaviorFactory
  • 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