Data.modify constructor
Data.modify(
- dynamic target, {
- required String path,
- required DataModify? modify,
The modify operation is also available, yet a bit more complex.
So this is split up into a seperate class: DataModify
Data.modify(
Entity.Selected(),
path: 'my_Custom_Path',
modify: DataModify.set(
'hey' // or {'nbt':'here'} or 56
),
)
⇒ data modify @s my_Custom_Path set value 'hey'
Implementation
Data.modify(this.target, {required this.path, required this.modify})
: _subcommand = 'modify' {
handleTarget(target);
}