Block.nbt constructor

Block.nbt(
  1. dynamic block, {
  2. Map<String, dynamic>? states,
  3. String? tag,
  4. Map<String, dynamic>? nbt,
  5. String strNbt = '',
})

Implementation

Block.nbt(
  dynamic block, {
  this.states,
  this.tag,
  this.nbt,
  this.strNbt = '',
})  : assert(block is String || block is Block,
          'Please insert a block or string into Block.nbt!'),
      _id = _getId(block);