dataMerge method
Generates a Data Widget
entity.dataMerge(nbt: {'CustomNameVisible':true}).queue()
Implementation
RestActionAble dataMerge({Map<String, dynamic>? nbt, String? strNbt}) {
if ((selector == 'a' ||
selector == 'r' ||
selector == 'p' ||
arguments['type'] == 'minecraft:player' ||
arguments['type'] == 'player')) {
throw ('Cannot modify a player\'s data');
}
if ((selector == 'a' || selector == 'e') &&
(arguments['limit'] == null || arguments['limit'] != '1')) {
throw ('Cannot work with data of multiple entities in data command');
}
return StraitWidget.builder
.create(Data.merge(this, nbt: nbt, strNbt: strNbt));
}