Companion

object Companion

Functions

Link copied to clipboard

Checks whether the given id is a valid namespaced or non-namespaced resource path.

Link copied to clipboard

Checks whether the given namespace is a valid namespace.

Link copied to clipboard

Checks whether the given path is a valid path.

Link copied to clipboard
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: String = "minecraft"): ResourcePath<T>
fun <T : ResourceType> of(type: T, id: String, fallbackNamespace: Plugin): ResourcePath<T>
fun <T : ResourceType> of(type: T, id: String, fallbackNamespace: Addon): ResourcePath<T>

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