ItemUsagesPage

open class ItemUsagesPage(val stack: ItemStack) : PagedGuidePage(source)

Displays all the recipes that use the given stack.

Constructors

Link copied to clipboard
constructor(stack: ItemStack)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val title: Component

The title of this page, displayed at the top of the GUI when the page is open.

Functions

Link copied to clipboard
open override fun getGui(player: Player): Gui

Created the page for the given player.

Link copied to clipboard
open fun getHeader(player: Player, pages: List<Gui>): PagedGui.Builder<Gui>
Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard
open override fun key(): @NotNull Key
Link copied to clipboard
open fun loadCurrentPage(player: Player, gui: PagedGui<*>)
Link copied to clipboard
open fun open(player: Player)

Opens the GUI for a player.

Link copied to clipboard
open fun saveCurrentPage(player: Player, page: Int)
Link copied to clipboard
open fun shouldDisplay(player: Player): Boolean

Should the page be displayed to said player? If not it won't be added to the button list