additionalKey

fun additionalKey(args: AdditionalArgs?, name: String, localeScope: String): NamespacedKey

Resolves the NamespacedKey under which the declared arg name is stored — the key you then pass to EffectiveDataContainerUtils to read a single value from a stack/entity. Validates that name is actually declared in args.

Parameters

localeScope

"items" / "entities", used only for error message keys

Throws

if args is null (no additional args declared)

if name isn't one of the declared keys