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 void
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected boolean
abstract C
boolean
int
protected abstract int
int
protected abstract int
int
getPage()
protected abstract int
getWidth()
int
hashCode()
abstract void
preBakeElement
(InfoSection infoSection) void
setLineStart
(int lineStart) void
setPage
(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
-