public class TextContent extends BookContent<TextData>
data, type| Constructor and Description |
|---|
TextContent() |
| 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 TextData> |
getDataClass()
The class of the data field.
|
onDeserializationpublic java.lang.Class<? extends TextData> getDataClass()
BookContentgetDataClass in class BookContent<TextData>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<TextData>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.