public class GuidePage extends GuidePageBase
GuidePart.PagePosition
Modifier and Type | Field and Description |
---|---|
GuideChapter |
chapterContents |
com.google.common.collect.ImmutableList<GuidePart> |
parts |
java.lang.String |
title |
numPages
gui, INDENT_WIDTH, LINE_HEIGHT, wasHovered, wasIconHovered
Constructor and Description |
---|
GuidePage(GuiGuide gui,
java.util.List<GuidePart> parts,
java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
java.util.List<GuideChapter> |
getChapters() |
java.lang.String |
getTitle() |
void |
handleMouseClick(int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int mouseButton,
int index,
boolean isEditing) |
protected void |
renderPage(int x,
int y,
int width,
int height,
int index) |
void |
setFontRenderer(IFontRenderer fontRenderer) |
void |
updateScreen() |
getClicked, getIndex, getPage, goToPage, handleMouseClick, handleMouseDragFinish, handleMouseDragPartial, keyTyped, lastPage, nextPage, renderFirstPage, renderIntoArea, renderSecondPage, shouldPersistHistory, tick
getFontRenderer, renderLine, renderLines, renderLines, renderTextLine, wasHovered
public final com.google.common.collect.ImmutableList<GuidePart> parts
public final java.lang.String title
public final GuideChapter chapterContents
public java.util.List<GuideChapter> getChapters()
getChapters
in class GuidePageBase
public java.lang.String getTitle()
getTitle
in class GuidePageBase
public void setFontRenderer(IFontRenderer fontRenderer)
setFontRenderer
in class GuidePart
public void updateScreen()
updateScreen
in class GuidePart
protected void renderPage(int x, int y, int width, int height, int index)
renderPage
in class GuidePageBase
public void handleMouseClick(int x, int y, int width, int height, int mouseX, int mouseY, int mouseButton, int index, boolean isEditing)
handleMouseClick
in class GuidePageBase