API reference Obsidian.API.Client
DimensionEffectsProperties class
How the client draws a mod's dimension type's sky, clouds and fog beyond what the type's synced data says, like NeoForge's dimension special effects. Register it with IClientRegistry.RegisterDimensionEffects.
public sealed class DimensionEffectsProperties
In Obsidian.API.Client.
Remarks
The dimension type's data (data/<ns>/dimension_type/<path>.json, sent to clients) decides most of it, for vanilla clients too: its skybox (overworld, end or none), its timelines (#minecraft:in_overworld for the day and night), and the minecraft:visual/ environment attributes of the type and its biomes, like sky_color, fog_color, fog_start_distance, fog_end_distance, cloud_color (clouds show when its alpha isn't 0) and cloud_height. These properties add what that format can't say.
Textures are read with the client's resources, after the mods are configured; without its file, the clouds are vanilla's and a sky quad is plain colour.
Constructors
public DimensionEffectsProperties();Properties
CloudTexture
public string CloudTexture { get; init; }The clouds' texture instead of vanilla's, like examplemod:environment/clouds for assets/examplemod/textures/environment/clouds.png, read like vanilla's clouds.png: each pixel that isn't transparent is a 12-block cell of cloud in the pixel's colour, and the texture repeats. Null for vanilla's clouds.
Effects
public IDimensionEffects Effects { get; init; }Code that adjusts the sky, fog and clouds each frame, or draws into the sky.
SkyTextures
public IReadOnlyList<string> SkyTextures { get; init; }The textures IDimensionEffects.RenderSky may draw with, like examplemod:environment/sun for assets/examplemod/textures/environment/sun.png.