Skip to main content

encode_layout

Function encode_layout 

Source
pub fn encode_layout(layout: &[SlotLayout]) -> String
Expand 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).