resourceKey
fun <T : Any> PaperLiteralNode.resourceKey(name: String, registryKey: RegistryKey<T>, block: PaperArgumentNode<TypedKey<T>>.() -> Unit)
Adds a registry resource key argument that resolves to a TypedKey without loading the entry. @see PaperContext.resourceKey
Returns the parsed TypedKey for a resource.
Parameters
T
expected registry type
Throws
if the key does not refer to a T (not checked at runtime).