applyToHolder

fun applyToHolder(holder: PersistentDataHolder, args: AdditionalArgs?, rawValues: List<String>, localeScope: String)

Parses rawValues (positional, one per declared key in args) into their PersistentDataTypes and writes each onto holder's persistent-data container under NamespacedKey(plugin, name).

No-op when rawValues is empty or args declares nothing. The counts must line up: passing a different number of values than declared keys is an error.

Parameters

localeScope

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

Throws

if the value count mismatches the declared keys, or a value can't be parsed to its declared type