Enum Class EDhApiWorldCompressionMode

java.lang.Object
java.lang.Enum<EDhApiWorldCompressionMode>
com.seibel.distanthorizons.api.enums.config.EDhApiWorldCompressionMode
All Implemented Interfaces:
Serializable, Comparable<EDhApiWorldCompressionMode>, Constable

public enum EDhApiWorldCompressionMode extends Enum<EDhApiWorldCompressionMode>
MERGE_SAME_BLOCKS
VISUALLY_EQUAL

Since:
API 2.0.0
  • Enum Constant Details

    • MERGE_SAME_BLOCKS

      public static final EDhApiWorldCompressionMode MERGE_SAME_BLOCKS
      Every block/biome change is recorded in the database.
      This is what DH 2.0 and 2.0.1 all used by default and will store a lot of data.
    • VISUALLY_EQUAL

      public static final EDhApiWorldCompressionMode VISUALLY_EQUAL
      Only visible block/biome changes are recorded in the database.
      Hidden blocks (IE ores) are ignored.
  • Field Details

    • value

      public final byte value
      More stable than using the ordinal of the enum
  • Method Details

    • values

      public static EDhApiWorldCompressionMode[] 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 EDhApiWorldCompressionMode 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
    • getFromValue

      public static EDhApiWorldCompressionMode getFromValue(byte value)