Enum Class EDhApiMaxHorizontalResolution
java.lang.Object
java.lang.Enum<EDhApiMaxHorizontalResolution>
com.seibel.distanthorizons.api.enums.config.EDhApiMaxHorizontalResolution
- All Implemented Interfaces:
Serializable
,Comparable<EDhApiMaxHorizontalResolution>
,Constable
BLOCK
TWO_BLOCKS
FOUR_BLOCKS
HALF_CHUNK
CHUNK
TWO_BLOCKS
FOUR_BLOCKS
HALF_CHUNK
CHUNK
- 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 ConstantDescriptionrender 256 LODs for each chunkrender 1 LOD for each chunkrender 16 LODs for each chunkrender 4 LODs for each chunkrender 64 LODs for each chunk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
How many DataPoints should be drawn per side, per LodChunkfinal int
How wide each LOD DataPoint isfinal byte
This is the same as detailLevel in LodQuadTreeNode, lowest is 0 highest is 9final int[]
final int[]
final int[]
final int[]
-
Method Summary
Modifier and TypeMethodDescriptiongetDetailForDistance
(EDhApiMaxHorizontalResolution maxDetailLevel, int distance, int maxDistance) Returns what detail level should be used at a given distance and maxDistance.static EDhApiMaxHorizontalResolution[]
Returns an array of all LodDetails that have a detail level that is less than or equal to the given LodDetailReturns the enum constant of this class with the specified name.static EDhApiMaxHorizontalResolution[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK
render 256 LODs for each chunk -
TWO_BLOCKS
render 64 LODs for each chunk -
FOUR_BLOCKS
render 16 LODs for each chunk -
HALF_CHUNK
render 4 LODs for each chunk -
CHUNK
render 1 LOD for each chunk
-
-
Field Details
-
dataPointLengthCount
public final int dataPointLengthCountHow many DataPoints should be drawn per side, per LodChunk -
dataPointWidth
public final int dataPointWidthHow wide each LOD DataPoint is -
detailLevel
public final byte detailLevelThis is the same as detailLevel in LodQuadTreeNode, lowest is 0 highest is 9 -
startX
public final int[] startX -
startZ
public final int[] startZ -
endX
public final int[] endX -
endZ
public final int[] endZ
-
-
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
-
getSelfAndLowerDetails
public static EDhApiMaxHorizontalResolution[] getSelfAndLowerDetails(EDhApiMaxHorizontalResolution detail) Returns an array of all LodDetails that have a detail level that is less than or equal to the given LodDetail -
getDetailForDistance
public static EDhApiMaxHorizontalResolution getDetailForDistance(EDhApiMaxHorizontalResolution maxDetailLevel, int distance, int maxDistance) Returns what detail level should be used at a given distance and maxDistance.
-