Package org.cyclops.cyclopscore.infobook
Interface IInfoBookRegistry
- All Superinterfaces:
IRegistry
- All Known Implementing Classes:
InfoBookRegistry
Registry for in-game manuals.
-
Method Summary
Modifier and TypeMethodDescriptionGet the root of the given book.void
registerInfoBook
(IInfoBook infoBook, String path) Register a new infobook.void
registerSection
(ModBase<?> mod, IInfoBook infoBook, String parentSection, String sectionPath) Register a new section to the given section of the given infobook.
-
Method Details
-
registerInfoBook
Register a new infobook.- Parameters:
infoBook
- The infobook to register.path
- The path to the xml file of the book.
-
registerSection
Register a new section to the given section of the given infobook.- Parameters:
mod
- The mod owning the section.infoBook
- The infobook to register to.parentSection
- The section to register this new section to.sectionPath
- The path to the xml file of the section to register.
-
getRoot
Get the root of the given book.- Parameters:
infoBook
- The info book to get the root from.- Returns:
- The root section.
-