API reference Obsidian.API.Client
BlockTint record
The colour a block's faces are tinted with, like vanilla's block colours: faces whose model gives them a tintindex are multiplied by its colour for that index. Register it with IClientRegistry.RegisterBlockTint.
public sealed record BlockTint : IEquatable<BlockTint>
In Obsidian.API.Client.
Properties
Color
public int Color { get; }The colour, as 0xRRGGBB, for BlockTintSource.Fixed; 0 for other sources.
Colors
public IReadOnlyList<int> Colors { get; }Fixed colours as 0xRRGGBB, by tint index, for BlockTintSource.Indexed; empty otherwise. The list is copied when created and cannot be changed. Missing indexes leave faces untinted.
DryFoliage
public static BlockTint DryFoliage { get; }The biome's dry foliage colour, blended across nearby biomes; vanilla's default dry foliage colour for the block's item.
Foliage
public static BlockTint Foliage { get; }The biome's foliage colour, blended across nearby biomes; vanilla's default foliage colour for the block's item.
Grass
public static BlockTint Grass { get; }The biome's grass colour, blended across nearby biomes; vanilla's grass block item colour for the block's item.
Source
public BlockTintSource Source { get; }Where the colour comes from.
Water
public static BlockTint Water { get; }The biome's water colour, blended across nearby biomes; vanilla's default water colour for the block's item.
Methods
Fixed(int)
public static BlockTint Fixed(int color);A fixed colour, as 0xRRGGBB, for the block and its item.
FixedByIndex(int[])
public static BlockTint FixedByIndex(params int[] colors);Fixed colours for the block and its item: entry zero colours tint index zero, entry one index one, and so on. Missing indexes and faces without a tint index stay untinted. Colours are copied and masked to 24-bit RGB.