public class JsonPageFactory extends java.lang.Object implements IBookPageFactory
| Modifier and Type | Field and Description |
|---|---|
static JsonPageFactory |
INSTANCE |
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<IGuiElement> |
load(IBookEntry entry,
int leftPageHeight,
int rightPageHeight,
int pageWidth)
Usually called at the moment the player opens the given entry.
|
public static final java.lang.String NAME
public static final JsonPageFactory INSTANCE
public java.util.Collection<IGuiElement> load(IBookEntry entry, int leftPageHeight, int rightPageHeight, int pageWidth)
IBookPageFactoryload in interface IBookPageFactoryentry - The opened book entry.leftPageHeight - The height of a page on the left side of the book.rightPageHeight - The height of a page on the right side of the book.pageWidth - The width of a book page.