Enum Class IdentifiedKey.Revision

java.lang.Object
java.lang.Enum<IdentifiedKey.Revision>
com.velocitypowered.api.proxy.crypto.IdentifiedKey.Revision
All Implemented Interfaces:
Ordered<IdentifiedKey.Revision>, Serializable, Comparable<IdentifiedKey.Revision>, Constable
Enclosing interface:
IdentifiedKey

public static enum IdentifiedKey.Revision extends Enum<IdentifiedKey.Revision> implements Ordered<IdentifiedKey.Revision>
The different versions of player keys, per Minecraft version.
  • Enum Constant Details

    • GENERIC_V1

      public static final IdentifiedKey.Revision GENERIC_V1
      Represents the original key revision introduced in Minecraft 1.19. Keys are not tied to a specific player identity.
    • LINKED_V2

      public static final IdentifiedKey.Revision LINKED_V2
      Represents the key revision introduced in Minecraft 1.19.1. Keys are cryptographically linked to player identities.
  • Method Details

    • values

      public static IdentifiedKey.Revision[] 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 IdentifiedKey.Revision 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
    • getBackwardsCompatibleTo

      public Set<IdentifiedKey.Revision> getBackwardsCompatibleTo()
      Returns the set of revisions that this revision is backwards-compatible with.
      Returns:
      a set of compatible earlier revisions
    • getApplicableTo

      public Set<ProtocolVersion> getApplicableTo()
      Returns the set of Minecraft protocol versions this revision applies to.
      Returns:
      a set of applicable protocol versions