Enum Class ProfileCreationResult.Outcome
- All Implemented Interfaces:
Serializable, Comparable<ProfileCreationResult.Outcome>, Constable
- Enclosing class:
ProfileCreationResult
How a profile creation ended.
- Since:
- 0.12.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe profile was created;ProfileCreationResult.profile()carries it.The name is already taken.The creation failed;ProfileCreationResult.failure()says why.The name is not a valid Minecraft name — the wrong length or an illegal character.The name is blocked or reserved and cannot be claimed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ProfileCreationResult.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
The profile was created;ProfileCreationResult.profile()carries it.- Since:
- 0.12.0
-
INVALID_NAME
The name is not a valid Minecraft name — the wrong length or an illegal character. Decided locally when the name could never be accepted, so no request is spent on it.- Since:
- 0.12.0
-
DUPLICATE
The name is already taken.- Since:
- 0.12.0
-
NOT_ALLOWED
The name is blocked or reserved and cannot be claimed.- Since:
- 0.12.0
-
FAILED
The creation failed;ProfileCreationResult.failure()says why.- Since:
- 0.12.0
-
-
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
-