Class ImageAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix<ImageAppendixClient>
org.cyclops.cyclopscore.infobook.pageelement.ImageAppendix
Images that can be added to sections.
-
Constructor Summary
ConstructorsConstructorDescriptionImageAppendix(IInfoBook infoBook, net.minecraft.resources.Identifier resource, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected intprotected intnet.minecraft.resources.Identifierprotected intgetWidth()voidpreBakeElement(InfoSection infoSection) Methods inherited from class SectionAppendix
canEqual, equals, getFullHeight, getInfoBook, getLineStart, getPage, getSectionAppendixClient, hashCode, setLineStart, setPage, toString
-
Constructor Details
-
ImageAppendix
public ImageAppendix(IInfoBook infoBook, net.minecraft.resources.Identifier resource, int width, int height) throws InfoBookParser.InvalidAppendixException
-
-
Method Details
-
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetYin classSectionAppendix<ImageAppendixClient>
-
getWidth
protected int getWidth()- Specified by:
getWidthin classSectionAppendix<ImageAppendixClient>
-
getHeight
protected int getHeight()- Specified by:
getHeightin classSectionAppendix<ImageAppendixClient>
-
constructSectionAppendixClient
- Specified by:
constructSectionAppendixClientin classSectionAppendix<ImageAppendixClient>
-
preBakeElement
- Specified by:
preBakeElementin classSectionAppendix<ImageAppendixClient>
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Specified by:
bakeElementin classSectionAppendix<ImageAppendixClient>- Parameters:
infoSection- The section this appendix is part of.w
-
getResource
public net.minecraft.resources.Identifier getResource()
-