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 long
static final AdvancedButtonEnum
boolean
long
static final int
protected Map
<AdvancedButtonEnum, AdvancedButton> This map holds advanced buttons that have a unique identifier.static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAdvancementRewardsAppendix
(IInfoBook infoBook, AdvancementRewards advancementRewards) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bakeElement
(InfoSection infoSection) Bake this appendix, only called once before changing pages.protected int
protected int
Point[]
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
-
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:
getOffsetY
in classSectionAppendix<AdvancementRewardsAppendixClient>
-
getWidth
protected int getWidth()- Specified by:
getWidth
in classSectionAppendix<AdvancementRewardsAppendixClient>
-
getHeight
protected int getHeight()- Specified by:
getHeight
in classSectionAppendix<AdvancementRewardsAppendixClient>
-
constructSectionAppendixClient
- Specified by:
constructSectionAppendixClient
in classSectionAppendix<AdvancementRewardsAppendixClient>
-
preBakeElement
- Specified by:
preBakeElement
in classSectionAppendix<AdvancementRewardsAppendixClient>
-
bakeElement
Description copied from class:SectionAppendix
Bake this appendix, only called once before changing pages.- Specified by:
bakeElement
in classSectionAppendix<AdvancementRewardsAppendixClient>
- Parameters:
infoSection
- The section this appendix is part of.w
-