Distant Horizons API

Distant Horizons API

Mod

Provides a Minecraft and mod loader independent way of interacting with and modifying Distant Horizons.

Library

84.1k downloads
36 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Changelog

Highlights:

  • Due to breaking changes the api version number has been up from 1.0.0 to 2.0.0
    • please make sure your implementing programs check the API version and handle old DH versions cleanly.

Full Details:

Breaking Changes

  • Renamed

    • ERendererMode -> EDhApiRendererMode
    • DhApiChunkOfDataPoints -> DhApiChunk
    • DhApiTerrainDataPoint
      • lightLevel -> blockLightLevel, skyLightLevel
    • DhApiBeforeRenderEvent and DhApiAfterRenderEvent -> EventParam
      • DhApiBeforeRenderEvent.EventParam -> DhApiRenderParam
      • DhApiAfterRenderEvent.EventParam -> DhApiRenderParam
    • Added missing "DhApi" prefix to the following enums:
      • EDhApiQualityPreset
      • EDhApiThreadPreset
      • EDhApiBlocksToAvoid
      • EDhApiDataCompressionMode
      • EDhApiGLErrorHandlingMode
      • EDhApiGlProfileMode
      • EDhApiGpuUploadMethod
      • EDhApiGrassSideRendering
      • EDhApiHorizontalQuality
      • EDhApiLodShading
      • EDhApiLoggerMode
      • EDhApiMaxHorizontalResolution
      • EDhApiServerFolderNameMode
      • EDhApiUpdateBranch
      • EDhApiVanillaOverdraw
      • EDhApiVerticalQuality
      • EDhApiWorldCompressionMode
      • EDhApiDebugRendering
      • EDhApiFogColorMode
      • EDhApiFogDrawMode
      • EDhApiFogFalloff
      • EDhApiHeightFogMixMode
      • EDhApiHeightFogMode
      • EDhApiRendererMode
      • EDhApiRenderPass
      • EDhApiTransparency
      • EDhApiWorldGeneratorReturnType
  • Replaced

    • IDhApiRenderProxy
      • removed getDhFrameBufferId() and setTargetFrameBufferId()
        • replaced with the bindable IDhApiFramebuffer interface
    • IDhApiGraphicsConfig
      • Replaced overdrawPrevention() with overdrawPreventionRadius()
    • Removed DhApiScreenResizeEvent
      • replaced with DhApiColorDepthTextureCreatedEvent

Additions

  • expand API to allow world generator to generate chunks of data points in addition to actual chunks. - Builderb0y

  • usable interfaces

    • IDhApiWrapperFactory
  • bindable interfaces

    • IDhApiFramebuffer
    • IDhApiShaderProgram
    • IDhApiCullingFrustum
    • IDhApiShadowCullingFrustum
  • bindable events

    • DhApiBeforeApplyShaderRenderEvent
    • DhApiBeforeBufferRenderEvent
    • DhApiBeforeDeferredRenderEvent
    • DhApiBeforeRenderCleanupEvent
    • DhApiBeforeRenderPassEvent
    • DhApiBeforeRenderSetupEvent
    • DhApiBeforeTextureClearEvent
    • DhApiColorDepthTextureCreatedEvent
  • methods

    • IDhApiRenderProxy
      • setDeferTransparentRendering()
      • getDeferTransparentRendering()
      • getNearClipPlaneDistanceInBlocks()
    • IOverrideInjector.unbind()
    • DhApi.isDhThread()
    • DhApiConfigValue.clearValue()
    • IDhApiRenderProxy.getDhFrameBufferId()
    • IDhApiWorldGenerator
      • generateChunks()
      • generateApiChunks()
      • EDhApiWorldGeneratorReturnType getReturnType()
    • IDhApiConfigValue
      • getApiValue()
      • clearValue()
  • variables

    • DhApiRenderParam
      • EDhApiRenderPass renderPass
      • float nearClipPlane
      • float farClipPlane
    • DhApi.wrapperFactory

Files

DistantHorizonsApi-2.0.0.jar(123.51 KiB) Primary Download

Project members

jeseibel

Owner

coolGi

Member

Ran

Member

Details

Licensed LGPL-3.0-only
Published a year ago
Updated a month ago