Class AdvancementsCache
java.lang.Object
org.geysermc.geyser.session.cache.AdvancementsCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildAndShowInfoForm(GeyserAdvancement advancement)Builds the advancement display info based on the chosen categoryvoidBuild and send the list of advancementsvoidBuild and send a form with all advancement categoriesgetColorFromAdvancementFrameType(GeyserAdvancement advancement)Stores the player's advancement progressStores advancements for the player.booleanisEarned(GeyserAdvancement advancement)Determine if this advancement has been earned.voidsetCurrentAdvancementCategoryId(String currentAdvancementCategoryId)Stores player's chosen advancement's ID and title for use in form creators.
-
Constructor Details
-
AdvancementsCache
-
-
Method Details
-
buildAndShowMenuForm
public void buildAndShowMenuForm()Build and send a form with all advancement categories -
buildAndShowListForm
public void buildAndShowListForm()Build and send the list of advancements -
buildAndShowInfoForm
Builds the advancement display info based on the chosen category- Parameters:
advancement- The advancement used to create the info display
-
isEarned
Determine if this advancement has been earned.- Parameters:
advancement- the advancement to determine- Returns:
- true if the advancement has been earned.
-
getColorFromAdvancementFrameType
-
getStoredAdvancementProgress
Stores the player's advancement progress -
getStoredAdvancements
Stores advancements for the player. -
setCurrentAdvancementCategoryId
Stores player's chosen advancement's ID and title for use in form creators.
-