Package org.geysermc.floodgate.api.link
Enum Class LinkRequestResult
- All Implemented Interfaces:
Serializable,Comparable<LinkRequestResult>,Constable
This enum has all the available result types of both creating a player link request and
validating it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe specified bedrock username is already linked to a Java account.The entered code is invalid.The link request has been verified successfully!The Java player hasn't requested a link to this Bedrock account.The Bedrock player verified the request too late.An unknown error encountered while creating / verifying the link request. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkRequestResultReturns the enum constant of this class with the specified name.static LinkRequestResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_ERROR
An unknown error encountered while creating / verifying the link request. -
ALREADY_LINKED
The specified bedrock username is already linked to a Java account. -
REQUEST_EXPIRED
The Bedrock player verified the request too late. The request has been expired. -
NO_LINK_REQUESTED
The Java player hasn't requested a link to this Bedrock account. -
INVALID_CODE
The entered code is invalid. -
LINK_COMPLETED
The link request has been verified successfully!
-
-
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
-