findOrNull

fun findOrNull(path: ResourcePath<*>): Path?

Searches for a file under path in both the resource pack and vanilla minecraft assets, returning the Path if it exists or null if it doesn't.