Tags
Creators
Details
2.0.0
Compatibility
Changes
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
- removed getDhFrameBufferId() and setTargetFrameBufferId()
- IDhApiGraphicsConfig
- Replaced overdrawPrevention() with overdrawPreventionRadius()
- Removed DhApiScreenResizeEvent
- replaced with DhApiColorDepthTextureCreatedEvent
- IDhApiRenderProxy
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()
- IDhApiRenderProxy
-
variables
- DhApiRenderParam
- EDhApiRenderPass renderPass
- float nearClipPlane
- float farClipPlane
- DhApi.wrapperFactory
- DhApiRenderParam
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Xs0XTOVv:VjqkMlBF"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Xs0XTOVv:VjqkMlBF"
}


