CustomPageButton

class CustomPageButton(val identifiableItem: IdentifiableItem, pageToOpen: Int) : MultiPageButton(source)

This class represents a button that will open a custom page of the MultiPageBuilder inventory once it has been clicked

Parameters

identifiableItem

The item that will be displayed in the inventory by which this button identifies

pageToOpen

The page number which will be opened when the button is clicked

Constructors

Link copied to clipboard
constructor(identifiableItem: IdentifiableItem, pageToOpen: Int)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun performAction(event: InventoryClickEvent, page: Int, multiPageBuilder: MultiPageBuilder)

This function will open the custom page of the inventory. It will be called when the button is clicked