Class AdvancementsCache
java.lang.Object
org.geysermc.connector.network.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)booleanisEarned(GeyserAdvancement advancement)Determine if this advancement has been earned.
-
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
-