Enum Class DataVersion

java.lang.Object
java.lang.Enum<DataVersion>
com.ldtteam.structurize.blueprints.v1.DataVersion
All Implemented Interfaces:
Serializable, Comparable<DataVersion>, Constable

public enum DataVersion extends Enum<DataVersion>
Enum for data
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static DataVersion[] 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 DataVersion 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
    • getDataVersion

      public int getDataVersion()
      Returns:
      data version of specific mc version
    • getMcVersion

      public String getMcVersion()
      Returns:
      mc version as readable string
    • getSuccessor

      public DataVersion getSuccessor()
      Returns:
      mc version as readable string
    • findFromMcVersion

      public static DataVersion findFromMcVersion(String mcVersion)
      Find data version based on string in format "x.y.z" which should represent Minecraft release version. Default is data version "0" which is pre 1.9
      Parameters:
      mcVersion - string in format "x.y.z" representing Minecraft release version
      Returns:
      data version enum
    • findFromDataVersion

      public static DataVersion findFromDataVersion(int dataVersion)
      Find data version based on its interger value.
      Parameters:
      dataVersion - integer format of data version
      Returns:
      dataVersion which is the nearest lower than supplied value