AbstractGUISpaceCompound

abstract class AbstractGUISpaceCompound<T : ForInventory, 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.
removeContent
Link copied to clipboard
fun removeContent(element: E)
Removes this element from the compound.
fun removeContent(elements: Iterable<E>)
Removes these elements from the compound.
setContent
Link copied to clipboard
fun setContent(element: E)
Set the content of the compound to this single element.
fun setContent(elements: Iterable<E>)
Set the content of the compound to these elements.
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.

Properties

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

Inheritors

GUIRectSpaceCompound
Link copied to clipboard
GUISpaceCompound
Link copied to clipboard