resourceKey

fun <T> resourceKey(name: String, registryKey: RegistryKey<T>, creator: CommandCreator<out ArgumentBuilder<CommandSourceStack, *>>.() -> Unit = {}): CommandCreator<T>

Adds a resource key argument to the command.

Parameters

registryKey

the registry to use for validation

Type Parameters

T

the type of registry entry