Class AdvancementRewardsAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewardsAppendix
An advancement rewards appendix.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected Map<AdvancedButtonEnum,
AdvancedButton> This map holds advanced buttons that have a unique identifier.static final int
-
Constructor Summary
ConstructorDescriptionAdvancementRewardsAppendix
(IInfoBook infoBook, AdvancementRewards advancementRewards) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected void
drawElement
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) protected int
protected int
protected int
getWidth()
protected void
postDrawElement
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) void
preBakeElement
(InfoSection infoSection) protected void
renderToolTips
(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int mx, int my) protected void
Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
drawScreen, getFullHeight
-
Field Details
-
SLOT_SIZE
public static final int SLOT_SIZE- See Also:
-
MAX_WIDTH
public static final int MAX_WIDTH- See Also:
-
renderButtonHolders
This map holds advanced buttons that have a unique identifier. The map has to be populated in the baking of this appendix. The map values can be updated on each render tick.
-
-
Constructor Details
-
AdvancementRewardsAppendix
-
-
Method Details
-
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetY
in classSectionAppendix
-
getWidth
protected int getWidth()- Specified by:
getWidth
in classSectionAppendix
-
getHeight
protected int getHeight()- Specified by:
getHeight
in classSectionAppendix
-
requestAdvancementInfo
protected void requestAdvancementInfo() -
drawElement
protected void drawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) - Specified by:
drawElement
in classSectionAppendix
-
postDrawElement
protected void postDrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) - Specified by:
postDrawElement
in classSectionAppendix
-
renderToolTips
protected void renderToolTips(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int mx, int my) -
preBakeElement
- Specified by:
preBakeElement
in classSectionAppendix
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Specified by:
bakeElement
in classSectionAppendix
- Parameters:
infoSection
- The section this appendix is part of.w
-