create Compound
fun <E> createCompound(iconGenerator: (E) -> ItemStack, onClick: (clickEvent: InventoryGUIClickEvent<T>, E) -> Unit): InventoryGUISpaceCompound<T, E>
Content copied to clipboard
Creates a new compound, holding data which can be displayed in any compound space.
fun <E> createCompound(fromSlot: SingleInventorySlot<out T>, toSlot: SingleInventorySlot<out T>, iconGenerator: (E) -> ItemStack, onClick: (clickEvent: InventoryGUIClickEvent<T>, E) -> Unit): InventoryGUIRectSpaceCompound<T, E>
Content copied to clipboard
Creates a new compound, holding data which can be displayed in any compound space. This compound is strictly a rectangle. The space is automatically defined.