Class AdvancementsCache

java.lang.Object
org.geysermc.geyser.session.cache.AdvancementsCache

public class AdvancementsCache extends Object
  • Constructor Details

    • AdvancementsCache

      public AdvancementsCache(GeyserSession session)
  • 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

      public void buildAndShowInfoForm(GeyserAdvancement advancement)
      Builds the advancement display info based on the chosen category
      Parameters:
      advancement - The advancement used to create the info display
    • isEarned

      public boolean isEarned(GeyserAdvancement advancement)
      Determine if this advancement has been earned.
      Parameters:
      advancement - the advancement to determine
      Returns:
      true if the advancement has been earned.
    • getColorFromAdvancementFrameType

      public String getColorFromAdvancementFrameType(GeyserAdvancement advancement)
    • getStoredAdvancementProgress

      public Map<String,​Map<String,​Long>> getStoredAdvancementProgress()
      Stores the player's advancement progress
    • getStoredAdvancements

      public Map<String,​GeyserAdvancement> getStoredAdvancements()
      Stores advancements for the player.
    • setCurrentAdvancementCategoryId

      public void setCurrentAdvancementCategoryId(String currentAdvancementCategoryId)
      Stores player's chosen advancement's ID and title for use in form creators.