Package de.Keyle.MyPet.api.gui


package de.Keyle.MyPet.api.gui
JSON-defined, section-based inventory menus.

A menu is a MenuDefinition: a resolved blueprint built from Section records that each own a rectangle of slots. Built-in sections cover backdrops (FillSection), borders (BorderSection), single slots (SlotSection), paged lists (PaginatedListSection), sliders (ValueBarSection) and free player input (StorageSection).

Each section type is registered in SectionTypeRegistry as a SectionType, pairing its record with a SectionRenderer that draws it and a JsonCodec that loads it — which is how an addon adds a section type of its own. Java-side behaviour lives in a MenuHandler, which receives a ClickPayload per click; GuiService opens menus and MenuInstance is the handle to one that is open. MenuIds catalogues the built-in menus.