PageBuilder

class PageBuilder(page: UIPage)(source)

Constructors

Link copied to clipboard
constructor(page: UIPage)

Functions

Link copied to clipboard
inline fun UIClickData.animate(handler: AnimationBuilder.() -> Unit)
Link copied to clipboard
fun background(space: ComponentSpace = Slot.All)
Link copied to clipboard
fun button(space: ComponentSpace, icon: () -> ItemStack, handler: (UIClickData) -> Unit)
fun button(space: ComponentSpace, display: ItemStack, handler: (UIClickData) -> Unit)
Link copied to clipboard
fun changePage(space: ComponentSpace, to: Int)
fun changePage(space: ComponentSpace, to: Int, item: () -> ItemStack)
fun changePage(space: ComponentSpace, to: Int, item: ItemStack)
Link copied to clipboard
fun close(space: ComponentSpace = Slot.RowLastSlotFive, item: ItemStack = ItemValue.placeholder(Material.BARRIER, "<red>Close"))
Link copied to clipboard
fun <V> compound(space: ComponentSpace, values: () -> List<V>, icon: (V) -> ItemStack, handler: (UIClickData, V) -> Unit): CompoundComponent<V>
fun <V> compound(space: ComponentSpace, values: Iterable<V>, icon: (V) -> ItemStack, handler: (UIClickData, V) -> Unit): CompoundComponent<V>
Link copied to clipboard
fun compoundScroll(space: ComponentSpace, compound: CompoundComponent<*>, amount: Int = 1, reverse: Boolean = false, display: ItemStack = ItemValue.placeholderDescripted( Material.ARROW, if (!reverse) "<green>Scroll Forward" else "<red>Scroll Backward", "<blue>$amount times" ))
Link copied to clipboard
fun compoundWidthScroll(space: ComponentSpace, compound: CompoundComponent<*>, reverse: Boolean = false, display: ItemStack = ItemValue.placeholder( Material.ARROW, if (!reverse) "<green>Scroll Forward" else "<red>Scroll Backward" ))
Link copied to clipboard
fun goBack(space: ComponentSpace, delegated: MacrocosmUI)
fun goBack(space: ComponentSpace, lazy: () -> MacrocosmUI, title: String = lazy().title.str())
Link copied to clipboard
infix fun Slot.lin(other: Slot): ComponentSpace
Link copied to clipboard
fun placeholder(space: ComponentSpace, item: ItemStack)
Link copied to clipboard
infix fun Slot.rect(other: Slot): ComponentSpace
Link copied to clipboard
fun storageSlot(space: ComponentSpace, fits: (ItemStack) -> Boolean = { true }, onPut: (UIClickData, ItemStack) -> Unit = { _, _ -> }, onTake: (UIClickData, ItemStack) -> Unit = { _, _ -> }): StorageComponent
Link copied to clipboard
fun switchUi(space: ComponentSpace, lazy: () -> MacrocosmUI, icon: () -> ItemStack)
fun switchUi(space: ComponentSpace, lazy: () -> MacrocosmUI, display: ItemStack)
fun switchUi(space: ComponentSpace, ui: String, icon: () -> ItemStack)
fun switchUi(space: ComponentSpace, ui: String, display: ItemStack)
fun switchUi(space: ComponentSpace, ui: MacrocosmUI, icon: () -> ItemStack)
fun switchUi(space: ComponentSpace, ui: MacrocosmUI, display: ItemStack)
Link copied to clipboard
fun <V> transparentCompound(space: ComponentSpace, values: () -> List<V>, icon: (V) -> ItemStack, handler: (UIClickData, V) -> Unit): CompoundComponent<V>
fun <V> transparentCompound(space: ComponentSpace, values: Iterable<V>, icon: (V) -> ItemStack, handler: (UIClickData, V) -> Unit): CompoundComponent<V>