Enum Class EDhApiMaxHorizontalResolution

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

public enum EDhApiMaxHorizontalResolution extends Enum<EDhApiMaxHorizontalResolution>
BLOCK
TWO_BLOCKS
FOUR_BLOCKS
HALF_CHUNK
CHUNK
Since:
API 2.0.0
  • Enum Constant Details

  • Field Details

    • dataPointLengthCount

      public final int dataPointLengthCount
      How many DataPoints should be drawn per side, per LodChunk
    • dataPointWidth

      public final int dataPointWidth
      How wide each LOD DataPoint is
    • detailLevel

      public final byte detailLevel
      This 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

      public static EDhApiMaxHorizontalResolution[] 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 EDhApiMaxHorizontalResolution 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
    • 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.