Sodium

Sodium

35M Downloads

API Requests for Distant Horizons

jeseibel opened this issue ยท 0 comments

commented

Request Description

Distant Horizons currently has two interfaces for Sodium:

  • HashSet<ChunkPos> getRenderedChunks()
    • This returns the set of chunk positions that are currently being rendered by sodium
  • void setFogOcclusion(boolean fogEnabled)
    • Due to DH disabling fog on vanilla chunks, occluding said chunks is unnecessary.

Here is the file where we are currently accessing Sodium:
https://gitlab.com/jeseibel/distant-horizons/-/blob/main/fabric/src/main/java/com/seibel/distanthorizons/fabric/wrappers/modAccessor/SodiumAccessor.java

Please ignore the pre-processor code in the SodiumAccessor. DH supports old MC/Sodium versions, but we don't expect Sodium to deploy these API changes for anything but the newest version of Sodium/MC.