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>

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