getOrRegisterDefault

fun getOrRegisterDefault(path: ResourcePath): Pair<Material, Int>

Retrieves the first id that registers path using the default material, or registers the path.