data
Edits the persistent data of this entity using a DSL builder.
Example usage:
entity.data {
this[NamespacedKey(plugin, "my_key")] = "hello"
remove(NamespacedKey(plugin, "old_key"))
}Content copied to clipboard
Parameters
editor
a lambda with receiver that reads or writes persistent data