Skip to main content

chest

Function chest 

Source
pub fn chest(
    inventory: Shared<PlayerInventory>,
    container_id: u8,
    container: impl Into<ContainerRef>,
    rows: usize,
) -> Menu
Expand description

Builds a chest-like menu with rows rows of 9 slots plus the player inventory.

ยงPanics

Panics if rows is 0 or greater than 6.