Class SectionAppendix<C extends SectionAppendixClient<?>>
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix<C>
- Direct Known Subclasses:
AdvancementRewardsAppendix,ImageAppendix,KeyBindingAppendix,RecipeAppendix,TextFieldAppendix
Separate elements that can be appended to sections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected booleanabstract Cbooleanintprotected abstract intintprotected abstract intintgetPage()protected abstract intgetWidth()inthashCode()abstract voidpreBakeElement(InfoSection infoSection) voidsetLineStart(int lineStart) voidsetPage(int page) toString()
-
Constructor Details
-
SectionAppendix
-
-
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
-
getSectionAppendixClient
-
preBakeElement
-
bakeElement
Bake this appendix, only called once before changing pages.- Parameters:
infoSection- The section this appendix is part of.w
-
getInfoBook
-
getPage
public int getPage() -
getLineStart
public int getLineStart() -
setPage
public void setPage(int page) -
setLineStart
public void setLineStart(int lineStart) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-