minuit

Container screens

Draw a menu's slots with minuit parts while the game keeps every click.

What you get

SlotLayout gives one layout to a menu, on both sides, and to its screen. In a MinuitContainerScreen, SlotGridComponent, PlayerInventoryComponent, HotbarComponent and SlotComponent draw the wells under the game's items. The game keeps every click.

Outside a menu, the same parts show items with a long count (1.2k, 34M), and a click only calls back.

Screen hooks

  • showsSlot(Slot) hides a menu slot: no hover, tooltip, click, drag or number key.
  • drawsCarried() returning false hides the stack at the pointer.
  • containerLeft() and containerTop() place the corner, read on every init; build(leftPos, topPos) gets it.
  • drawsBackground() returning false drops the dim and blur. drawsLabels() returning false hides both titles.

Item list mods

For JEI, REI and EMI, both screens answer itemUnderMouse(), extraAreas() and dropTargets(). The labels pass is final: open dropdowns draw in it.