Data constructor

Data(
  1. dynamic target, {
  2. Map<String, dynamic>? nbt = const {},
  3. String type = 'merge',
})

The Data Widgets allows you to edit nbt data of Entities or Blocks.

Data(
	Entity.Selected(),
	nbt: {
		'Invisible':1,
		'NoGravity':1
	}
)
⇒ data merge entity @s {'Invisible':1,'NoGravity':1}

Implementation

Data(this.target, {this.nbt = const {}, String type = 'merge'})
    : _subcommand = type {
  handleTarget(target);
}