Package io.papermc.paper.advancement
Enum Class AdvancementDisplay.Frame
- All Implemented Interfaces:
- Serializable,- Comparable<AdvancementDisplay.Frame>,- Constable,- Translatable
- Enclosing interface:
- AdvancementDisplay
public static enum AdvancementDisplay.Frame
extends Enum<AdvancementDisplay.Frame>
implements Translatable
Defines how the 
AdvancementDisplay.icon() appears in the advancements screen and
 the color used with the advancement name.- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Index<String, AdvancementDisplay.Frame> The name map.
- 
Method SummaryModifier and TypeMethodDescriptioncolor()Gets theTextColorused for the advancement name.Gets the translation key used when an advancement is completed.static AdvancementDisplay.FrameReturns the enum constant of this class with the specified name.static AdvancementDisplay.Frame[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
CHALLENGE"Challenge complete" advancement.The client will play the ui.toast.challenge_completesound when the challenge is completed and the toast is shown.
- 
GOAL"Goal reached" advancement.
- 
TASK"Advancement made" advancement.
 
- 
- 
Field Details- 
NAMESThe name map.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
colorGets theTextColorused for the advancement name.- Returns:
- the text color
 
- 
translationKeyGets the translation key used when an advancement is completed.This is the first line of the toast displayed by the client. - Specified by:
- translationKeyin interface- Translatable
- Returns:
- the toast message key
 
 
-