Enum Class LinkRequestResult

java.lang.Object
java.lang.Enum<LinkRequestResult>
org.geysermc.floodgate.api.link.LinkRequestResult
All Implemented Interfaces:
Serializable, Comparable<LinkRequestResult>, Constable

public enum LinkRequestResult extends Enum<LinkRequestResult>
This enum has all the available result types of both creating a player link request and validating it.
  • Enum Constant Details

    • UNKNOWN_ERROR

      public static final LinkRequestResult UNKNOWN_ERROR
      An unknown error encountered while creating / verifying the link request.
    • ALREADY_LINKED

      public static final LinkRequestResult ALREADY_LINKED
      The specified bedrock username is already linked to a Java account.
    • REQUEST_EXPIRED

      public static final LinkRequestResult REQUEST_EXPIRED
      The Bedrock player verified the request too late. The request has been expired.
    • INVALID_CODE

      public static final LinkRequestResult INVALID_CODE
      The entered code is invalid.
  • Method Details

    • values

      public static LinkRequestResult[] 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

      public static LinkRequestResult valueOf(String name)
      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 name
      NullPointerException - if the argument is null