public class IndexContent extends BookContent<IndexData>
data, type| Constructor and Description |
|---|
IndexContent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addElements(IElementGroup page,
IGuiElementFactory factory,
BookContent previous,
IGuiElement previousElement,
int pageHeight)
Adds the content to the page by adding a
IGuiElement or at the content to the previous element. |
java.lang.Class<? extends IndexData> |
getDataClass()
The class of the data field.
|
onDeserialization@Nullable public java.lang.Class<? extends IndexData> getDataClass()
BookContentgetDataClass in class BookContent<IndexData>public boolean addElements(IElementGroup page, IGuiElementFactory factory, @Nullable BookContent previous, @Nullable IGuiElement previousElement, int pageHeight)
BookContentIGuiElement or at the content to the previous element.addElements in class BookContent<IndexData>page - The gui element that represents a book pageprevious - The content of the previous element.previousElement - The element that was previously added to the page.pageHeight - The max height of the current page.