Package de.Keyle.MyPet.api.gui
Interface Section
- All Known Implementing Classes:
BorderSection,CustomSection,FillSection,PaginatedListSection,SlotSection,StorageSection,ValueBarSection
public sealed interface Section
permits SlotSection, PaginatedListSection, BorderSection, FillSection, StorageSection, ValueBarSection, CustomSection
Sealed marker for every section record. Each section knows its id and its type handle.
The sealed set permits both built-ins and a generic carrier for registered widgets.
-
Method Summary
Modifier and TypeMethodDescriptionid()Returns this section's id within its menu.SectionType<? extends Section> type()Returns the handle describing this section's type.
-
Method Details
-
id
String id()Returns this section's id within its menu.- Returns:
- the section id, unique among the menu's sections
-
type
SectionType<? extends Section> type()Returns the handle describing this section's type.- Returns:
- the type this section was decoded as
-