InventoryGUIPageBuilder

class InventoryGUIPageBuilder<T : ForInventory>(type: InventoryType<T>, page: Int)

Functions

build
Link copied to clipboard
fun build(): InventoryGUIPage
button
Link copied to clipboard

A button is an item protected from any player actions. If clicked, the specified onClick function is invoked.

fun button(slots: InventorySlotCompound<T>, itemStack: ItemStack, onClick: (InventoryGUIClickEvent<T>) -> Unit)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
freeSlot
Link copied to clipboard

A free slot does not block any player actions. The player can put items in this slot or take items out of it.

fun freeSlot(slots: InventorySlotCompound<T>)
hashCode
Link copied to clipboard
open override fun hashCode(): Int
nextPage
Link copied to clipboard

This button always tries to find the next page if clicked, and if a next page exists it is loaded.

fun nextPage(slots: InventorySlotCompound<T>, itemStack: ItemStack, onChange: (InventoryGUIClickEvent<T>) -> Unit?)
pageChanger
Link copied to clipboard

This is a button which loads the specified toPage if clicked.

fun pageChanger(slots: InventorySlotCompound<T>, itemStack: ItemStack, toPage: Int, onChange: (InventoryGUIClickEvent<T>) -> Unit?)
placeholder
Link copied to clipboard

An item protected from any player actions. This is not a button.

fun placeholder(slots: InventorySlotCompound<T>, itemStack: ItemStack)
previousPage
Link copied to clipboard

This button always tries to find the previous page if clicked, and if a previous page exists it is loaded.

fun previousPage(slots: InventorySlotCompound<T>, itemStack: ItemStack, onChange: (InventoryGUIClickEvent<T>) -> Unit?)
toString
Link copied to clipboard
open override fun toString(): String

Properties

page
Link copied to clipboard
val page: Int
transitionFrom
Link copied to clipboard
var transitionFrom: InventoryGUIPageChangeEffect?
transitionTo
Link copied to clipboard
var transitionTo: InventoryGUIPageChangeEffect?
type
Link copied to clipboard
val type: InventoryType<T>