ItemIngredientsPage

Displays a breakdown of the ingredients needed to craft an item.

Magic numbers: 27 -> 27 "i" in sub-page, which means input items/fluid 9 -> 9 "o" in sub-page, which means intermediates

Author

balugaq

Constructors

Link copied to clipboard
constructor(stack: ItemStack)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The list of buttons to be displayed on this page.

Link copied to clipboard

Supplies the buttons to be displayed on this page.

Link copied to clipboard
Link copied to clipboard
open override val item: ItemStackBuilder

The item representing this page. This will be used in any io.github.pylonmc.pylon.core.guide.button.PageButtons that point to this page.

Link copied to clipboard
Link copied to clipboard

The material representing this page. Used for PageButtons that point to this page.

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 fun addFluid(fluid: PylonFluid): Boolean
Link copied to clipboard
open fun addItem(item: ItemStack): Boolean
Link copied to clipboard
open fun addPage(page: GuidePage): Boolean
Link copied to clipboard
open fun addResearch(research: Research): Boolean
Link copied to clipboard
fun flatWithAmount(container: Container?): Item

Display amount in the input/intermediate stacks

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

Created the page for the given player.

Link copied to clipboard
open fun getGuiHeader(player: Player, pages: List<Gui>): @NotNull PagedGui.Builder<@NotNull Gui>
Link copied to clipboard
open fun getHeader(player: Player, buttons: List<Item>): @NotNull PagedGui.Builder<@NotNull Item>

Returns a page containing the header (the top row of the page) and a section for the items to go.

Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard
open fun getSubPage(player: Player, stack: ItemStack, calculation: IngredientCalculation, page: Int, maxPage: Int): @NotNull PagedGui<@NotNull Gui>
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)