Class SectionAppendix

java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
Direct Known Subclasses:
AdvancementRewardsAppendix, ImageAppendix, KeyBindingAppendix, RecipeAppendix, TextFieldAppendix

public abstract class SectionAppendix extends Object
Separate elements that can be appended to sections.
  • Constructor Details

    • SectionAppendix

      public SectionAppendix(IInfoBook infoBook)
  • 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

      public abstract void preBakeElement(InfoSection infoSection)
    • bakeElement

      public abstract void bakeElement(InfoSection infoSection)
      Bake this appendix, only called once before changing pages.
      Parameters:
      infoSection - The section this appendix is part of.w