# createRectCompound

fun <E> createRectCompound(fromSlot: SingleInventorySlot<out T>, toSlot: SingleInventorySlot<out T>, iconGenerator: (E) -> ItemStack, onClick: (clickEvent: GUIClickEvent<T>, E) -> Unit? = null): GUIRectSpaceCompound<T, E>
Content copied to clipboard

Creates a new compound, holding custom element data. This compound is strictly a rectangle. The space is automatically defined.