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.ResourceLocation resource, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected int
protected int
net.minecraft.resources.ResourceLocation
protected int
getWidth()
void
preBakeElement
(InfoSection infoSection) Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
canEqual, equals, getFullHeight, getInfoBook, getLineStart, getPage, getSectionAppendixClient, hashCode, setLineStart, setPage, toString
-
Constructor Details
-
ImageAppendix
public ImageAppendix(IInfoBook infoBook, net.minecraft.resources.ResourceLocation resource, int width, int height) throws InfoBookParser.InvalidAppendixException
-
-
Method Details
-
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetY
in classSectionAppendix<ImageAppendixClient>
-
getWidth
protected int getWidth()- Specified by:
getWidth
in classSectionAppendix<ImageAppendixClient>
-
getHeight
protected int getHeight()- Specified by:
getHeight
in classSectionAppendix<ImageAppendixClient>
-
constructSectionAppendixClient
- Specified by:
constructSectionAppendixClient
in classSectionAppendix<ImageAppendixClient>
-
preBakeElement
- Specified by:
preBakeElement
in classSectionAppendix<ImageAppendixClient>
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Specified by:
bakeElement
in classSectionAppendix<ImageAppendixClient>
- Parameters:
infoSection
- The section this appendix is part of.w
-
getResource
public net.minecraft.resources.ResourceLocation getResource()
-