FMLLoadCompleteEvent and Foliage colored blocks

Status
Resolved
Issue description

Please add FMLLoadComplete listener to the main mod file and postinit function to the elements. It'll allow to add block coloring based on Biome colors and make life of advanced modders much easier!

FMLJavaModLoadingContext.get().getModEventBus().addListener(this::loadComplete); 

@OnlyIn(Dist.CLIENT)
private void loadComplete(FMLLoadCompleteEvent event){
	elements.getElements().forEach(element -> element.postinit(event));
}

The main feature, that can be implemented than is Foliage and grass coloring! here are the methods (for 1.14.4)

public void postinit(FMLLoadCompleteEvent event){
    Minecraft.getInstance().getBlockColors().register((state,world,pos,tintIndex) ->
    world != null && pos != null ? BiomeColors.getFoliageColor(world, pos) : 
FoliageColors.getDefault(), <BlockClassName>.block);
}

Registries for Items  can be found here

Issue comments

You can make a new mod element custom code and register to this event from there.

Foliage color is planned too, check this ticket: https://mcreator.net/tracker/issue/53766

The code for foliage, the approach you use does not seem very proper, referring to Minecraft.getInstance() in a method not annotated with client-side code.