Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the original key revision introduced in Minecraft 1.19.Represents the key revision introduced in Minecraft 1.19.1. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of Minecraft protocol versions this revision applies to.Returns the set of revisions that this revision is backwards-compatible with.static IdentifiedKey.RevisionReturns the enum constant of this class with the specified name.static IdentifiedKey.Revision[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.velocitypowered.api.util.Ordered
greaterThan, lessThan, noGreaterOrLessThan, noGreaterThan, noLessThan
-
Enum Constant Details
-
GENERIC_V1
Represents the original key revision introduced in Minecraft 1.19. Keys are not tied to a specific player identity. -
LINKED_V2
Represents the key revision introduced in Minecraft 1.19.1. Keys are cryptographically linked to player identities.
-
-
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
-
getBackwardsCompatibleTo
Returns the set of revisions that this revision is backwards-compatible with.- Returns:
- a set of compatible earlier revisions
-
getApplicableTo
Returns the set of Minecraft protocol versions this revision applies to.- Returns:
- a set of applicable protocol versions
-