minuit

SlotGridComponent and PlayerInventoryComponent

The game's item slots, drawn in your theme. A chest grid, the player inventory, a single slot, with counts up to 34M.

Java

Inside a PanelComponent constructor. The same call draws in every family and chroma.

Java
Box chest = SlotLayout.grid("chest", 13, 27, 2, 9);
add(new SlotGridComponent(at(chest), 2, 9).items(stacks).marked(2, true));
add(new PlayerInventoryComponent(at(SlotLayout.playerInventory("inv", 13, SlotLayout.inventoryTop(27, 2))))
        .items(player.all36()).label("Inventory"));
add(new SlotComponent(at(new Box("storage", 200, 26, 18, 18))).item(ItemView.of("minecraft:cobblestone"), 1_234));

Display

Hover a slot for its tooltip.

SlotGridComponent and PlayerInventoryComponent, display: Hover a slot for its tooltip.