Skip to main content

block_state_global_bits

Function block_state_global_bits 

Source
fn block_state_global_bits() -> u8
Expand description

Bits per entry for the block-state global palette.

Derived from the registered block-state count and cached on first use, so a version bump that changes the state count doesn’t need a matching hardcoded constant here. Matches vanilla, which sizes the global palette from the registry rather than a fixed width.