Class AdvancementsCache
java.lang.Object
org.geysermc.geyser.session.cache.AdvancementsCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildAndShowInfoForm(GeyserAdvancement advancement)
Builds the advancement display info based on the chosen categoryvoid
Build and send the list of advancementsvoid
Build and send a form with all advancement categoriesgetColorFromAdvancementFrameType(GeyserAdvancement advancement)
Stores the player's advancement progressStores advancements for the player.boolean
isEarned(GeyserAdvancement advancement)
Determine if this advancement has been earned.void
setCurrentAdvancementCategoryId(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.
-