use of riskyken.armourersWorkshop.client.handler.BlockHighlightRenderHandler 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());
}
Aggregations