Class SectionAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
- Direct Known Subclasses:
AdvancementRewardsAppendix
,ImageAppendix
,KeyBindingAppendix
,RecipeAppendix
,TextFieldAppendix
Separate elements that can be appended to sections.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected abstract void
drawElement
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) void
drawScreen
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my, boolean pre) Draw the appendix.int
protected abstract int
protected abstract int
protected abstract int
getWidth()
protected abstract void
postDrawElement
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) abstract void
preBakeElement
(InfoSection infoSection)
-
Constructor Details
-
SectionAppendix
-
-
Method Details
-
getFullHeight
public int getFullHeight()- Returns:
- The full height of this element with offsets.
-
getOffsetY
protected abstract int getOffsetY() -
getWidth
protected abstract int getWidth() -
getHeight
protected abstract int getHeight() -
drawScreen
public void drawScreen(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my, boolean pre) Draw the appendix.- Parameters:
gui
- The gui.guiGraphics
- The gui graphics object.x
- Start X.y
- Start Y.width
- Max width.height
- Max height.page
- Current page.mx
- Mouse X.my
- Mouse Y.pre
- If the normal drawing should occur, otherwise post-drawing: things like tooltips.
-
drawElement
protected abstract void drawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) -
postDrawElement
protected abstract void postDrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) -
preBakeElement
-
bakeElement
Bake this appendix, only called once before changing pages.- Parameters:
infoSection
- The section this appendix is part of.w
-