Class AdvancementRewardsAppendix
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix<AdvancementRewardsAppendixClient>
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewardsAppendix
An advancement rewards appendix.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final AdvancedButtonEnumbooleanlongstatic final intprotected Map<AdvancedButtonEnum, AdvancedButton> This map holds advanced buttons that have a unique identifier.static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionAdvancementRewardsAppendix(IInfoBook infoBook, AdvancementRewards advancementRewards) -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeElement(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected intprotected intPoint[]protected intgetWidth()voidpreBakeElement(InfoSection infoSection) Methods inherited from class org.cyclops.cyclopscore.infobook.pageelement.SectionAppendix
canEqual, equals, getFullHeight, getInfoBook, getLineStart, getPage, getSectionAppendixClient, hashCode, setLineStart, setPage, toString
-
Field Details
-
SLOT_SIZE
public static final int SLOT_SIZE- See Also:
-
SLOT_PADDING
public static final int SLOT_PADDING- See Also:
-
MAX_WIDTH
public static final int MAX_WIDTH- See Also:
-
ADVANCEMENT_INFO_REQUEST_TIMEOUT
public static final long ADVANCEMENT_INFO_REQUEST_TIMEOUT- See Also:
-
COLLECT
-
errored
public boolean errored -
lastAdvancementInfoRequest
public long lastAdvancementInfoRequest -
renderButtonHolders
This map holds advanced buttons that have a unique identifier. The map has to be populated in the baking of this appendix. The map values can be updated on each render tick.
-
-
Constructor Details
-
AdvancementRewardsAppendix
public AdvancementRewardsAppendix(IInfoBook infoBook, AdvancementRewards advancementRewards) throws InfoBookParser.InvalidAppendixException
-
-
Method Details
-
getRewards
-
getAdvancements
-
getRewardPositions
-
getAdvancementRewards
-
getRenderButtonHolders
-
getOffsetY
protected int getOffsetY()- Specified by:
getOffsetYin classSectionAppendix<AdvancementRewardsAppendixClient>
-
getWidth
protected int getWidth()- Specified by:
getWidthin classSectionAppendix<AdvancementRewardsAppendixClient>
-
getHeight
protected int getHeight()- Specified by:
getHeightin classSectionAppendix<AdvancementRewardsAppendixClient>
-
constructSectionAppendixClient
- Specified by:
constructSectionAppendixClientin classSectionAppendix<AdvancementRewardsAppendixClient>
-
preBakeElement
- Specified by:
preBakeElementin classSectionAppendix<AdvancementRewardsAppendixClient>
-
bakeElement
Description copied from class:SectionAppendixBake this appendix, only called once before changing pages.- Specified by:
bakeElementin classSectionAppendix<AdvancementRewardsAppendixClient>- Parameters:
infoSection- The section this appendix is part of.w
-