Class AdvancementsCache
java.lang.Object
org.geysermc.geyser.session.cache.AdvancementsCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbuildAndShowInfoForm(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) intgetProgress(GeyserAdvancement advancement) Determine the progress on an advancement.Stores the player's advancement progressStores advancements for the player.booleanisEarned(GeyserAdvancement advancement) Determine if this advancement has been earned.voidsetCurrentAdvancementCategoryId(String categoryId)
-
Constructor Details
-
AdvancementsCache
-
-
Method Details
-
setCurrentAdvancementCategoryId
-
buildAndShowForm
public void buildAndShowForm() -
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.
-
getProgress
Determine the progress on an advancement.- Parameters:
advancement- the advancement to determine- Returns:
- the progress on the advancement.
-
getColorFromAdvancementFrameType
-
getStoredAdvancementProgress
Stores the player's advancement progress -
getStoredAdvancements
Stores advancements for the player.
-