containerBackground

Sizes the modified component to a Minecraft 26.2 generic chest panel and paints its background before content.

The natural size is 176 by 114 + rows * 18 logical pixels. Paint emits the same upper and lower source regions from generic_54.png in the same order as ContainerScreen.extractBackground; the final logical row remains outside those two native blits. This behavior is available only while a Minecraft screen-content callback is active on its owner thread.

Receiver

immutable modifier chain extended inside the active screen callback.

Return

a new chain retaining the immutable container asset and row policy in one active measure-and-paint modifier.

Parameters

rows

chest row count from one through six.

Throws

when rows is outside one through six or later constraints do not contain the exact natural size.

when checked size arithmetic overflows.

when used from another thread or outside the callback.