Class ColorResolverRegistry

java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.ColorResolverRegistry

public final class ColorResolverRegistry extends Object
The registry for custom ColorResolvers. Custom resolvers must be registered during client initialization for them to be usable in BlockRenderView.getColor(net.minecraft.util.math.BlockPos, net.minecraft.world.biome.ColorResolver). Calling this method may throw an exception if the passed resolver is not registered with this class. Vanilla resolvers found in BiomeColors are automatically registered.

Other mods may also require custom resolvers to be registered if they provide additional functionality related to color resolvers.