Class AdvancementRewardsAppendix

java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewardsAppendix

public class AdvancementRewardsAppendix extends SectionAppendix
An advancement rewards appendix.
  • Field Details

    • SLOT_SIZE

      public static final int SLOT_SIZE
      See Also:
    • MAX_WIDTH

      public static final int MAX_WIDTH
      See Also:
    • renderButtonHolders

      protected Map<AdvancedButtonEnum,AdvancedButton> 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

  • Method Details

    • getOffsetY

      protected int getOffsetY()
      Specified by:
      getOffsetY in class SectionAppendix
    • getWidth

      protected int getWidth()
      Specified by:
      getWidth in class SectionAppendix
    • getHeight

      protected int getHeight()
      Specified by:
      getHeight in class SectionAppendix
    • 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 class SectionAppendix
    • 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 class SectionAppendix
    • renderToolTips

      protected void renderToolTips(ScreenInfoBook gui, net.minecraft.client.gui.GuiGraphics guiGraphics, int mx, int my)
    • preBakeElement

      public void preBakeElement(InfoSection infoSection)
      Specified by:
      preBakeElement in class SectionAppendix
    • bakeElement

      public void bakeElement(InfoSection infoSection)
      Description copied from class: SectionAppendix
      Bake this appendix, only called once before changing pages.
      Specified by:
      bakeElement in class SectionAppendix
      Parameters:
      infoSection - The section this appendix is part of.w