createPathfindingHandle

public final Optional<PathfindingHandle> createPathfindingHandle(LivingEntity livingEntity)

Creates one reusable, interruptible navigation handle for an existing mob. Long destinations are resolved into bounded native legs without loading chunks. Unsupported entity types fail closed.


protected Optional<PathfindingHandle> createPathfindingHandle(LivingEntity livingEntity, int priority)

Implemented by adapters that can install native goals on the supplied entity.