ReplaceItem.block constructor
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;