Class BlockColorRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.BlockColorRegistry
The registry for
BlockTintSources.-
Method Summary
-
Method Details
-
register
public static void register(List<net.minecraft.client.color.block.BlockTintSource> layers, net.minecraft.world.level.block.Block... blocks) Register a block color for one or more blocks. Overriding existing registrations is allowed.Mods must use this method instead of
BlockColors.register(List, Block...)during mod initialization as it runs beforeMinecraft.getBlockColors()is available.- Parameters:
layers- A list ofBlockTintSources.blocks- The blocks which should be colored using the given color.
-