of

fun <T : ResourceType> of(type: T, key: Key): ResourcePath<T>

Creates a new ResourcePath in type using the given key.


fun <T : ResourceType> of(type: T, id: String, fallbackNamespace: Addon): ResourcePath<T>
fun <T : ResourceType> of(type: T, id: String, fallbackNamespace: Plugin): ResourcePath<T>
fun <T : ResourceType> of(type: T, id: String, fallbackNamespace: String = "minecraft"): ResourcePath<T>

Creates a new ResourcePath in type using the given id, falling back to fallbackNamespace if no namespace is specified in id.