getNbt method
Implementation
@override
Map<String, dynamic> getNbt([bool useId = true]) {
final nbt = super.getNbt(useId);
void addIfExist(dynamic val, String tag) {
if (val != null) nbt[tag] = val;
}
addIfExist(height, 'height');
addIfExist(width, 'width');
addIfExist(response, 'response');
return nbt;
}