public abstract class GuidePageBase extends GuidePart
GuidePart.PagePosition| Modifier and Type | Field and Description |
|---|---|
protected int |
numPages |
gui, INDENT_WIDTH, LINE_HEIGHT, wasHovered, wasIconHovered| Constructor and Description |
|---|
GuidePageBase(GuiGuide gui) |
| Modifier and Type | Method and Description |
|---|---|
GuidePageBase |
createReloaded()
Called when the
GuideManager is reloaded. |
abstract java.util.List<GuideChapter> |
getChapters() |
protected GuidePart |
getClicked(java.lang.Iterable<GuidePart> iterable,
int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int index) |
protected int |
getIndex() |
int |
getPage() |
abstract java.lang.String |
getTitle() |
protected void |
goToPage(int page) |
GuidePart.PagePosition |
handleMouseClick(int x,
int y,
int width,
int height,
GuidePart.PagePosition current,
int index,
int mouseX,
int mouseY)
Like
GuidePart.renderIntoArea(int, int, int, int, PagePosition, int) but for a mouse click. |
void |
handleMouseClick(int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int mouseButton,
int index,
boolean isEditing) |
void |
handleMouseDragFinish(int startX,
int startY,
int endX,
int endY,
int button) |
void |
handleMouseDragPartial(int startX,
int startY,
int currentX,
int currentY,
int button) |
boolean |
keyTyped(char typedChar,
int keyCode) |
void |
lastPage() |
void |
nextPage() |
void |
renderFirstPage(int x,
int y,
int width,
int height) |
GuidePart.PagePosition |
renderIntoArea(int x,
int y,
int width,
int height,
GuidePart.PagePosition current,
int index) |
protected void |
renderPage(int x,
int y,
int width,
int height,
int index) |
void |
renderSecondPage(int x,
int y,
int width,
int height) |
boolean |
shouldPersistHistory() |
void |
tick() |
getFontRenderer, renderLine, renderLines, renderLines, renderTextLine, renderTooltip, setFontRenderer, updateScreen, wasHoveredpublic GuidePageBase(GuiGuide gui)
protected final int getIndex()
public final void nextPage()
public final void lastPage()
protected final void goToPage(int page)
public int getPage()
public void tick()
public final GuidePart.PagePosition renderIntoArea(int x, int y, int width, int height, GuidePart.PagePosition current, int index)
renderIntoArea in class GuidePartcurrent - The current position to render fromindex - The current page index to render onpublic abstract java.lang.String getTitle()
public boolean shouldPersistHistory()
@Nullable public GuidePageBase createReloaded()
GuideManager is reloaded.public abstract java.util.List<GuideChapter> getChapters()
protected GuidePart getClicked(java.lang.Iterable<GuidePart> iterable, int x, int y, int width, int height, int mouseX, int mouseY, int index)
public void renderFirstPage(int x,
int y,
int width,
int height)
public void renderSecondPage(int x,
int y,
int width,
int height)
protected void renderPage(int x,
int y,
int width,
int height,
int index)
public final GuidePart.PagePosition handleMouseClick(int x, int y, int width, int height, GuidePart.PagePosition current, int index, int mouseX, int mouseY)
GuidePartGuidePart.renderIntoArea(int, int, int, int, PagePosition, int) but for a mouse click.handleMouseClick in class GuidePartpublic void handleMouseClick(int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int mouseButton,
int index,
boolean isEditing)
public final void handleMouseDragPartial(int startX,
int startY,
int currentX,
int currentY,
int button)
handleMouseDragPartial in class GuidePartpublic final void handleMouseDragFinish(int startX,
int startY,
int endX,
int endY,
int button)
handleMouseDragFinish in class GuidePartpublic boolean keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
java.io.IOException