Enum Class AdvancementDisplay.AdvancementFrame
java.lang.Object
java.lang.Enum<AdvancementDisplay.AdvancementFrame>
eu.endercentral.crazy_advancements.advancement.AdvancementDisplay.AdvancementFrame
- All Implemented Interfaces:
Serializable
,Comparable<AdvancementDisplay.AdvancementFrame>
,Constable
- Enclosing class:
- AdvancementDisplay
public static enum AdvancementDisplay.AdvancementFrame
extends Enum<AdvancementDisplay.AdvancementFrame>
Represents the Frame of an Advancement
- Author:
- Axel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA Challenge has a differently shaped Frame and defaults to a purple Color in Completion Messages and it's Toast plays a Sound when displayedA Goal has a rounded off Frame and defaults to a green Color in Completion MessagesA Task has the default Frame and defaults to a green Color in Completion Messages -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.advancements.AdvancementFrameType
getNMS()
Get the NMS Representation of this AdvancementFrameParses the AdvancementFrame by it's nameparseStrict
(String name) Parses the AdvancementFrame by it's nameReturns the enum constant of this class with the specified name.static AdvancementDisplay.AdvancementFrame[]
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
-
TASK
A Task has the default Frame and defaults to a green Color in Completion Messages -
GOAL
A Goal has a rounded off Frame and defaults to a green Color in Completion Messages -
CHALLENGE
A Challenge has a differently shaped Frame and defaults to a purple Color in Completion Messages and it's Toast plays a Sound when displayed
-
-
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
-
getNMS
public net.minecraft.advancements.AdvancementFrameType getNMS()Get the NMS Representation of this AdvancementFrame- Returns:
- THE NMS Representation
-
parse
Parses the AdvancementFrame by it's name- Parameters:
name
- The case-insensitive name- Returns:
- The AdvancementFrame
-
parseStrict
Parses the AdvancementFrame by it's name- Parameters:
name
- The case-insensitive name- Returns:
- The AdvancementFrame or null if no matching Frame is found
-