Enum Class MappingData.MappingType

java.lang.Object
java.lang.Enum<MappingData.MappingType>
com.viaversion.viaversion.api.data.MappingData.MappingType
All Implemented Interfaces:
RegistryKey, Serializable, Comparable<MappingData.MappingType>, Constable
Enclosing interface:
MappingData

public static enum MappingData.MappingType extends Enum<MappingData.MappingType> implements RegistryKey
Type of mappings. Currently only relevant for ops writing of generic holder classes and expanded when needed.
  • Enum Constant Details

  • Method Details

    • values

      public static MappingData.MappingType[] 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 MappingData.MappingType 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
    • key

      public Key key()
      Specified by:
      key in interface RegistryKey