Class SectionAppendix<C extends SectionAppendixClient<?>>

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

public abstract class SectionAppendix<C extends SectionAppendixClient<?>> extends Object
Separate elements that can be appended to sections.
  • Constructor Details

  • 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()
    • constructSectionAppendixClient

      public abstract C constructSectionAppendixClient() throws InfoBookParser.InvalidAppendixException
      Throws:
      InfoBookParser.InvalidAppendixException
    • getSectionAppendixClient

      public C getSectionAppendixClient()
    • 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
    • getInfoBook

      public IInfoBook getInfoBook()
    • getPage

      public int getPage()
    • getLineStart

      public int getLineStart()
    • setPage

      public void setPage(int page)
    • setLineStart

      public void setLineStart(int lineStart)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object