Enum Class EDhApiDetailLevel
- All Implemented Interfaces:
Serializable
,Comparable<EDhApiDetailLevel>
,Constable
BLOCK - Detail Level: 0, width 1 block,
CHUNK - Detail Level: 4, width 16 block,
REGION - Detail Level: 9, width 512 block
Detail levels in Distant Horizons represent how large a LOD is, with the smallest being 0 (1 block wide).
The width of a detail level can be calculated by putting the detail level to the power of 2.
Example for the chunk detail level (4): 2^4 = 16 blocks wide
This enum doesn't contain all valid detail levels, only those most likely to be needed. Detail levels 1,2,3, ... 255 are all technically valid detail levels (although anything beyond
CHUNK - Detail Level: 4, width 16 block,
REGION - Detail Level: 9, width 512 block
Detail levels in Distant Horizons represent how large a LOD is, with the smallest being 0 (1 block wide).
The width of a detail level can be calculated by putting the detail level to the power of 2.
Example for the chunk detail level (4): 2^4 = 16 blocks wide
This enum doesn't contain all valid detail levels, only those most likely to be needed. Detail levels 1,2,3, ... 255 are all technically valid detail levels (although anything beyond
REGION
may be difficult deal with).- Since:
- API 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EDhApiDetailLevel
Returns the enum constant of this class with the specified name.static EDhApiDetailLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK
detail level: 0
width in Blocks: 1 -
CHUNK
detail level: 4
width in Blocks: 16 -
REGION
detail level: 9
width in Blocks: 512
-
-
Field Details
-
detailLevel
public final byte detailLevel -
widthInBlocks
public final byte widthInBlocks
-
-
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
-