Search in sources :

Example 1 with TileRenderHandler

use of com.builtbroken.mc.client.json.render.tile.TileRenderHandler in project Engine by VoltzEngine-Project.

the class ClientProxy method init.

@Override
public void init() {
    super.init();
    RenderingRegistry.registerEntityRenderingHandler(EntityExCreeper.class, new RenderExCreeper());
    if (Engine.multiBlock != null) {
        RenderingRegistry.registerBlockHandler(MultiBlockRenderHelper.INSTANCE);
    }
    TileRenderHandler tileRenderHandler = new TileRenderHandler();
    for (RenderData data : ClientDataHandler.INSTANCE.renderData.values()) {
        if (data instanceof TileRenderData && ((TileRenderData) data).tileClass != null) {
            ClientRegistry.bindTileEntitySpecialRenderer(((TileRenderData) data).tileClass, tileRenderHandler);
        }
    }
}
Also used : RenderExCreeper(com.builtbroken.mc.core.content.entity.RenderExCreeper) RenderData(com.builtbroken.mc.client.json.render.RenderData) TileRenderData(com.builtbroken.mc.client.json.render.tile.TileRenderData) TileRenderData(com.builtbroken.mc.client.json.render.tile.TileRenderData) TileRenderHandler(com.builtbroken.mc.client.json.render.tile.TileRenderHandler)

Aggregations

RenderData (com.builtbroken.mc.client.json.render.RenderData)1 TileRenderData (com.builtbroken.mc.client.json.render.tile.TileRenderData)1 TileRenderHandler (com.builtbroken.mc.client.json.render.tile.TileRenderHandler)1 RenderExCreeper (com.builtbroken.mc.core.content.entity.RenderExCreeper)1