ReplaceItem constructor

ReplaceItem(
  1. Entity? entity, {
  2. required Item? item,
  3. required Slot slot,
})

Sets a specific container slot to a item for Entities.

Implementation

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