Page Builder
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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>