isRegionThread

abstract fun isRegionThread(location: Location): Boolean

Folia & Paper: Returns whether the current thread is ticking a region and that the region being ticked owns the chunk at the specified world and block position as included in the specified location
Bukkit: returns {@link org.bukkit.Server#isPrimaryThread}