getNbt method

  1. @override
Map<String, dynamic> getNbt([
  1. bool useId = true
])
override

Implementation

@override
Map<String, dynamic> getNbt([bool useId = true]) {
  final nbt = super.getNbt(useId);

  _addBoolNbt(nbt, marker, 'Marker');
  _addBoolNbt(nbt, hasArms, 'ShowArms');
  _addBoolNbt(nbt, invisible, 'Invisible');
  if (basePlate != null) _addBoolNbt(nbt, !basePlate!, 'NoBasePlate');
  _addSlots(nbt);

  return nbt;
}