Enum Class AdvancementFlag
- All Implemented Interfaces:
Serializable
,Comparable<AdvancementFlag>
,Constable
Alters the behavior of Advancements
- Author:
- Axel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdvancements with this Flag will broadcast a Message in Chat upon CompletionAdvancements with this Flag will be sent with the hidden boolean set to true allowing the creation of empty Advancement Tabs or to draw linesAdvancements with this Flag will display a Toast upon Completion -
Field Summary
Modifier and TypeFieldDescriptionstatic final AdvancementFlag[]
Shorthand for combining Toast Notifications and Chat Messages -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementFlag
Returns the enum constant of this class with the specified name.static AdvancementFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SHOW_TOAST
Advancements with this Flag will display a Toast upon Completion -
DISPLAY_MESSAGE
Advancements with this Flag will broadcast a Message in Chat upon Completion -
SEND_WITH_HIDDEN_BOOLEAN
Advancements with this Flag will be sent with the hidden boolean set to true allowing the creation of empty Advancement Tabs or to draw lines
-
-
Field Details
-
TOAST_AND_MESSAGE
Shorthand for combining Toast Notifications and Chat Messages
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-