ReplaceItem.block constructor

ReplaceItem.block(
  1. Location? loc, {
  2. required Item? item,
  3. required Slot slot,
})

To set items inside a block use ReplaceItem.block:

ReplaceItem.block
Location The block location
item the Item you want to set(required)
slot a Slot Object with the slot set(required)

Implementation

ReplaceItem.block(
  this.loc, {
  required this.item,
  required this.slot,
}) : _type = _ReplaceItemType.replace;