pub fn encode_layout(layout: &[SlotLayout]) -> StringExpand description
Encode an InventoryDef’s slot layout as "x:y,x:y,..." — the
wire format used when handing the layout to the Java host (mirrors how
BlockDef::connect_groups is comma-joined for its ABI struct).