compound

fun <E> compound(slots: GuiSlotCompound.SlotRange.Rectangle, content: AbstractGuiList<E, List<E>>, iconGenerator: suspend (E) -> ItemStack, onClick: suspend (event: GuiClickEvent, element: E) -> Unit? = null): GuiCompound<E>(source)

Creates a new rectangular compound (startSlot and endSlot define the corners of the compound).

Return

the compound, which is needed for other elements, like a compound scroll button