GUIRectSpaceCompound

class GUIRectSpaceCompound<T : ForInventory, E>(invType: GUIType<T>, iconGenerator: (E) -> ItemStack, onClick: (GUIClickEvent<T>, E) -> Unit?, compoundWidth: Int) : AbstractGUISpaceCompound<T, E>

Functions

addContent
Link copied to clipboard
fun addContent(element: E)
Adds a new element to the compound.
fun addContent(elements: Iterable<E>)
Adds new elements to the compound.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
sortContentBy
Link copied to clipboard
fun <R : Comparable<R>> sortContentBy(reverse: Boolean = false, selector: (E) -> R?)
Defines the sort behaviour which gets applied to the content automatically.
toString
Link copied to clipboard
open fun toString(): String

Properties

guiType
Link copied to clipboard
val guiType: GUIType<T>