replaceitem method

RestActionAble replaceitem({
  1. required Item item,
  2. required Slot slot,
})

Generates a ReplaceItem Widget

player.replaceitem(item: item, slot: slot).queue()

Implementation

RestActionAble replaceitem({required Item item, required Slot slot}) =>
    StraitWidget.builder.create(ReplaceItem(this, item: item, slot: slot));