# createSimpleRectCompound

fun createSimpleRectCompound(fromSlot: SingleInventorySlot<out T>, toSlot: SingleInventorySlot<out T>): GUIRectSpaceCompound<T, GUICompoundElement<T>>
Content copied to clipboard

Creates a new compound, holding simple compound elements. This compound is strictly a rectangle. The space is automatically defined.

This method sets the element type to GUICompoundElement. The iconGenerator and onClick callback are automatically defined.