public class AdvancementsCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADVANCEMENT_INFO_FORM_ID |
static int |
ADVANCEMENTS_LIST_FORM_ID |
static int |
ADVANCEMENTS_MENU_FORM_ID |
| Constructor and Description |
|---|
AdvancementsCache(GeyserSession session) |
| Modifier and Type | Method and Description |
|---|---|
SimpleFormWindow |
buildInfoForm(GeyserAdvancement advancement)
Builds the advancement display info based on the chosen category
|
SimpleFormWindow |
buildListForm()
Builds the list of advancements
|
SimpleFormWindow |
buildMenuForm()
Build a form with all advancement categories
|
String |
getColorFromAdvancementFrameType(GeyserAdvancement advancement) |
boolean |
handleInfoForm(String response)
Handle the info form response
|
boolean |
handleListForm(String response)
Handle the list form response (Advancement category choice)
|
boolean |
handleMenuForm(String response)
Handle the menu form response
|
boolean |
isEarned(GeyserAdvancement advancement)
Determine if this advancement has been earned.
|
public static final int ADVANCEMENTS_MENU_FORM_ID
public static final int ADVANCEMENTS_LIST_FORM_ID
public static final int ADVANCEMENT_INFO_FORM_ID
public AdvancementsCache(GeyserSession session)
public SimpleFormWindow buildMenuForm()
public SimpleFormWindow buildListForm()
public SimpleFormWindow buildInfoForm(GeyserAdvancement advancement)
advancement - The advancement used to create the info displaypublic boolean isEarned(GeyserAdvancement advancement)
advancement - the advancement to determinepublic boolean handleMenuForm(String response)
response - The response string to parsepublic boolean handleListForm(String response)
response - The response string to parsepublic boolean handleInfoForm(String response)
response - The response string to parsepublic String getColorFromAdvancementFrameType(GeyserAdvancement advancement)
Copyright © 2021 GeyserMC. All rights reserved.