PageButton

open class PageButton(val stack: ItemStack, val page: GuidePage) : GuideButton(source)

A button that opens another page in the guide.

The name and lore of stack are ignored, and overwritten by the supplied name and lore.

The name will be inherited from the page name. The lore will be blank, unless you add it at <your-addon>.guide.button.<button-key>: "your name here"

See also

Constructors

Link copied to clipboard
constructor(stack: ItemStack, page: GuidePage)
constructor(builder: ItemStackBuilder, page: GuidePage)
constructor(material: Material, page: GuidePage)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addObserver(who: Observer?, what: Int, how: Int)
Link copied to clipboard
open override fun getItemProvider(viewer: Player): ItemProvider
Link copied to clipboard
open fun getUpdatePeriod(what: Int): Int
Link copied to clipboard
open fun handleBundleSelect(player: Player?, bundleSlot: Int)
Link copied to clipboard
open override fun handleClick(clickType: ClickType, player: Player, click: Click)
Link copied to clipboard
open fun notifyWindows()
Link copied to clipboard
open override fun priority(): Double
Link copied to clipboard
open fun removeObserver(who: Observer?, what: Int, how: Int)
Link copied to clipboard
open override fun shouldDisplay(player: Player): Boolean