Storage.copyScore constructor

Storage.copyScore(
  1. String name, {
  2. bool autoNamespace = true,
  3. double? scale = 1,
  4. String? datatype = 'byte',
  5. required String? key,
  6. required Score? score,
})

Similar to copyData is copyScore which copies the value of a score into a nbt path.

Implementation

Storage.copyScore(
  this.name, {
  this.autoNamespace = true,
  this.scale = 1,
  this.datatype = 'byte',
  required this.key,
  required this.score,
})  : assert(score != null),
      assert(key != null),
      _type = _StorageType.score;