Search in sources :

Example 1 with StyleSheetManager

use of binnie.core.gui.resource.stylesheet.StyleSheetManager in project Binnie by ForestryMC.

the class BinnieProxyClient method preInit.

@Override
public void preInit() {
    final IResourceManager manager = Minecraft.getMinecraft().getResourceManager();
    if (manager instanceof IReloadableResourceManager) {
        IReloadableResourceManager resourceManager = (IReloadableResourceManager) manager;
        resourceManager.registerReloadListener(new StyleSheetManager());
        resourceManager.registerReloadListener(resourceManager1 -> I18N.onResourceReload());
    }
}
Also used : IReloadableResourceManager(net.minecraft.client.resources.IReloadableResourceManager) StyleSheetManager(binnie.core.gui.resource.stylesheet.StyleSheetManager) IResourceManager(net.minecraft.client.resources.IResourceManager)

Aggregations

StyleSheetManager (binnie.core.gui.resource.stylesheet.StyleSheetManager)1 IReloadableResourceManager (net.minecraft.client.resources.IReloadableResourceManager)1 IResourceManager (net.minecraft.client.resources.IResourceManager)1