GuiModule.inventory constructor

GuiModule.inventory(
  1. Entity target, {
  2. required List<GuiPage> pages,
  3. Item? placeholder,
  4. String countScore = _DEF_Count,
  5. String pageScore = _DEF_Page,
  6. bool fillHotbar = false,
  7. List<GuiSlot>? globalSlots,
  8. String path = 'gui',
})

Implementation

factory GuiModule.inventory(
  Entity target, {
  required List<GuiPage> pages,
  Item? placeholder,
  String countScore = _DEF_Count,
  String pageScore = _DEF_Page,
  bool fillHotbar = false,
  List<GuiSlot>? globalSlots,
  String path = 'gui',
}) =>
    GuiModule._(
      GuiContainer.inventory,
      null,
      target,
      pages,
      placeholder,
      countScore,
      pageScore,
      globalSlots,
      path,
      fillMax: fillHotbar ? null : 27,
    );