Enum IdentifiedKey.Revision
- java.lang.Object
-
- java.lang.Enum<IdentifiedKey.Revision>
-
- com.velocitypowered.api.proxy.crypto.IdentifiedKey.Revision
-
- All Implemented Interfaces:
Serializable,Comparable<IdentifiedKey.Revision>
- Enclosing interface:
- IdentifiedKey
public static enum IdentifiedKey.Revision extends Enum<IdentifiedKey.Revision>
The different versions of player keys, per Minecraft version.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENERIC_V1LINKED_V2
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ProtocolVersion>getApplicableTo()Set<IdentifiedKey.Revision>getBackwardsCompatibleTo()static IdentifiedKey.RevisionvalueOf(String name)Returns the enum constant of this type with the specified name.static IdentifiedKey.Revision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GENERIC_V1
public static final IdentifiedKey.Revision GENERIC_V1
-
LINKED_V2
public static final IdentifiedKey.Revision LINKED_V2
-
-
Method Detail
-
values
public static IdentifiedKey.Revision[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IdentifiedKey.Revision c : IdentifiedKey.Revision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifiedKey.Revision valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getBackwardsCompatibleTo
public Set<IdentifiedKey.Revision> getBackwardsCompatibleTo()
-
getApplicableTo
public Set<ProtocolVersion> getApplicableTo()
-
-