Enum Class EDhApiWorldCompressionMode
java.lang.Object
java.lang.Enum<EDhApiWorldCompressionMode>
com.seibel.distanthorizons.api.enums.config.EDhApiWorldCompressionMode
- All Implemented Interfaces:
Serializable
,Comparable<EDhApiWorldCompressionMode>
,Constable
MERGE_SAME_BLOCKS
VISUALLY_EQUAL
VISUALLY_EQUAL
- Since:
- API 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvery block/biome change is recorded in the database.Only visible block/biome changes are recorded in the database. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EDhApiWorldCompressionMode
getFromValue
(byte value) static EDhApiWorldCompressionMode
Returns the enum constant of this class with the specified name.static EDhApiWorldCompressionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Only visible block/biome changes are recorded in the database.
Hidden blocks (IE ores) are ignored.
-
-
Field Details
-
value
public final byte valueMore stable than using the ordinal of the enum
-
-
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
-
getFromValue
-