Skip to main content

Inventory_Get

Function Inventory_Get 

Source
pub fn Inventory_Get(idx: c_int) -> BlockID
Expand description

Gets the block at the nth index in the current hotbar.

ยงPanics

Panics if Inventory.Offset + idx is negative.