Class AdvancementRewardsAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewardsAppendix
An advancement rewards appendix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected Map<AdvancedButtonEnum, AdvancedButton> This map holds advanced buttons that have a unique identifier.static final int -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementRewardsAppendix(IInfoBook infoBook, AdvancementRewards advancementRewards) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected voiddrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) protected intprotected intprotected intgetWidth()protected voidpostDrawElement(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, int width, int height, int page, int mx, int my) voidpreBakeElement(InfoSection infoSection) protected voidrenderToolTips(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int mx, int my) protected voidMethods 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:
getOffsetYin classSectionAppendix
-
getWidth
protected int getWidth()- Specified by:
getWidthin classSectionAppendix
-
getHeight
protected int getHeight()- Specified by:
getHeightin 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:
drawElementin 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:
postDrawElementin classSectionAppendix
-
renderToolTips
protected void renderToolTips(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int mx, int my) -
preBakeElement
- Specified by:
preBakeElementin classSectionAppendix
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Specified by:
bakeElementin classSectionAppendix- Parameters:
infoSection- The section this appendix is part of.w
-