Search in sources :

Example 1 with RenderBlockGlobalSkinLibrary

use of riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockGlobalSkinLibrary in project Armourers-Workshop by RiskyKen.

the class ClientProxy method initRenderers.

@Override
public void initRenderers() {
    SkinModelRenderer.init();
    EntitySkinRenderHandler.init();
    new BlockHighlightRenderHandler();
    new ItemTooltipHandler();
    new SkinPreviewHandler();
    Render arrowRender = new RenderSkinnedArrow();
    arrowRender.setRenderManager(RenderManager.instance);
    RenderManager.instance.entityRenderMap.put(EntityArrow.class, arrowRender);
    // Register tile entity renderers.
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityArmourer.class, new RenderBlockArmourer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMannequin.class, new RenderBlockMannequin());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMiniArmourer.class, new RenderBlockMiniArmourer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkinnable.class, new RenderBlockSkinnable());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityColourable.class, new RenderBlockColourable());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBoundingBox.class, new RenderBlockColourable());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGlobalSkinLibrary.class, new RenderBlockGlobalSkinLibrary());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHologramProjector.class, new RenderBlockHologramProjector());
    // Register item renderers.
    ModelMannequin modelSteve = new ModelMannequin(false);
    ModelMannequin modelAlex = new ModelMannequin(true);
    MinecraftForgeClient.registerItemRenderer(ModItems.equipmentSkin, new RenderItemEquipmentSkin());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.miniArmourer), new RenderItemBlockMiniArmourer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.mannequin), new RenderItemMannequin(modelSteve, modelAlex));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.doll), new RenderItemMannequin(modelSteve, modelAlex));
    // Register block renderers.
    RenderingRegistry.registerBlockHandler(new RenderBlockColourMixer());
    RenderingRegistry.registerBlockHandler(new RenderBlockGlowing());
}
Also used : SkinPreviewHandler(riskyken.armourersWorkshop.client.handler.SkinPreviewHandler) RenderBlockMiniArmourer(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockMiniArmourer) RenderItemBlockMiniArmourer(riskyken.armourersWorkshop.client.render.item.RenderItemBlockMiniArmourer) RenderBlockGlobalSkinLibrary(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockGlobalSkinLibrary) Render(net.minecraft.client.renderer.entity.Render) RenderBlockColourMixer(riskyken.armourersWorkshop.client.render.block.RenderBlockColourMixer) RenderItemMannequin(riskyken.armourersWorkshop.client.render.item.RenderItemMannequin) RenderBlockMannequin(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockMannequin) BlockHighlightRenderHandler(riskyken.armourersWorkshop.client.handler.BlockHighlightRenderHandler) RenderBlockArmourer(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockArmourer) RenderBlockColourable(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockColourable) RenderBlockHologramProjector(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockHologramProjector) RenderItemEquipmentSkin(riskyken.armourersWorkshop.client.render.item.RenderItemEquipmentSkin) RenderBlockSkinnable(riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockSkinnable) RenderBlockGlowing(riskyken.armourersWorkshop.client.render.block.RenderBlockGlowing) ItemTooltipHandler(riskyken.armourersWorkshop.client.handler.ItemTooltipHandler) RenderSkinnedArrow(riskyken.armourersWorkshop.client.render.entity.RenderSkinnedArrow) ModelMannequin(riskyken.armourersWorkshop.client.model.ModelMannequin)

Aggregations

Render (net.minecraft.client.renderer.entity.Render)1 BlockHighlightRenderHandler (riskyken.armourersWorkshop.client.handler.BlockHighlightRenderHandler)1 ItemTooltipHandler (riskyken.armourersWorkshop.client.handler.ItemTooltipHandler)1 SkinPreviewHandler (riskyken.armourersWorkshop.client.handler.SkinPreviewHandler)1 ModelMannequin (riskyken.armourersWorkshop.client.model.ModelMannequin)1 RenderBlockColourMixer (riskyken.armourersWorkshop.client.render.block.RenderBlockColourMixer)1 RenderBlockGlowing (riskyken.armourersWorkshop.client.render.block.RenderBlockGlowing)1 RenderSkinnedArrow (riskyken.armourersWorkshop.client.render.entity.RenderSkinnedArrow)1 RenderItemBlockMiniArmourer (riskyken.armourersWorkshop.client.render.item.RenderItemBlockMiniArmourer)1 RenderItemEquipmentSkin (riskyken.armourersWorkshop.client.render.item.RenderItemEquipmentSkin)1 RenderItemMannequin (riskyken.armourersWorkshop.client.render.item.RenderItemMannequin)1 RenderBlockArmourer (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockArmourer)1 RenderBlockColourable (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockColourable)1 RenderBlockGlobalSkinLibrary (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockGlobalSkinLibrary)1 RenderBlockHologramProjector (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockHologramProjector)1 RenderBlockMannequin (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockMannequin)1 RenderBlockMiniArmourer (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockMiniArmourer)1 RenderBlockSkinnable (riskyken.armourersWorkshop.client.render.tileEntity.RenderBlockSkinnable)1