addTargetFinder

abstract fun addTargetFinder(priority: Int, finder: TargetFinder)

Adds the given target finder to this goal selector with the given priority.

The priority system is very simple. The lower the priority, the higher the target finder is on the list when searching for targets.

For example, a target finder with priority 0 will be queried for a target before a target finder with priority 1.

Parameters

priority

the priority of the target finder

finder

the target finder to add