Search in sources :

Example 1 with BlockCandleColorHandler

use of com.witchworks.client.handler.BlockCandleColorHandler in project Witchworks by Um-Mitternacht.

the class ClientProxy method init.

@Override
public void init(FMLInitializationEvent event) {
    BlockColors blocks = Minecraft.getMinecraft().getBlockColors();
    //Block Colors
    blocks.registerBlockColorHandler(new BlockCandleColorHandler(), ModBlocks.CANDLE_LARGE, ModBlocks.CANDLE_MEDIUM, ModBlocks.CANDLE_SMALL);
    ItemColors items = Minecraft.getMinecraft().getItemColors();
    //Item Colors
    items.registerItemColorHandler(new ItemCandleColorHandler(), Item.getItemFromBlock(ModBlocks.CANDLE_LARGE), Item.getItemFromBlock(ModBlocks.CANDLE_MEDIUM), Item.getItemFromBlock(ModBlocks.CANDLE_SMALL));
    items.registerItemColorHandler(new BrewItemColorHandler(), ModItems.BREW_PHIAL_DRINK, ModItems.BREW_PHIAL_SPLASH, ModItems.BREW_PHIAL_LINGER);
    NetworkRegistry.INSTANCE.registerGuiHandler(WitchWorks.instance, new GuiHandler());
}
Also used : ItemColors(net.minecraft.client.renderer.color.ItemColors) ItemCandleColorHandler(com.witchworks.client.handler.ItemCandleColorHandler) BrewItemColorHandler(com.witchworks.client.handler.BrewItemColorHandler) GuiHandler(com.witchworks.common.core.net.GuiHandler) BlockCandleColorHandler(com.witchworks.client.handler.BlockCandleColorHandler) BlockColors(net.minecraft.client.renderer.color.BlockColors)

Aggregations

BlockCandleColorHandler (com.witchworks.client.handler.BlockCandleColorHandler)1 BrewItemColorHandler (com.witchworks.client.handler.BrewItemColorHandler)1 ItemCandleColorHandler (com.witchworks.client.handler.ItemCandleColorHandler)1 GuiHandler (com.witchworks.common.core.net.GuiHandler)1 BlockColors (net.minecraft.client.renderer.color.BlockColors)1 ItemColors (net.minecraft.client.renderer.color.ItemColors)1