Java 类net.minecraftforge.client.MinecraftForgeClient 实例源码

项目:Solar    文件:BakedHyperConductor.java   
@Override
protected List<BakedQuad> getQuads(IBlockState state) {
    List<BakedQuad> quads = new ArrayList<>();
    switch(MinecraftForgeClient.getRenderLayer()) {
        case SOLID:
            //Base
            quads.addAll(QuadBuilder.withFormat(format)
                    .setFrom(0, 0, 0)
                    .setTo(16, 16, 16)
                    .addAll(base)
                    .bake()
            );
            break;
        case CUTOUT_MIPPED:
            //Overlay
            quads.addAll(QuadBuilder.withFormat(format)
                    .setFrom(0, 0, 0)
                    .setTo(16, 16, 16)
                    .setHasBrightness(true)
                    .addAll(overlay)
                    .bake()
            );
            break;
    }
    return quads;
}
项目:Solar    文件:BakedSchrodingerGlyph.java   
@Override
protected List<BakedQuad> getQuads(IBlockState state) {
    List<BakedQuad> quads = new ArrayList<>();
    switch(MinecraftForgeClient.getRenderLayer()) {
        case SOLID:
            //Base
            quads.addAll(QuadBuilder.withFormat(format)
                    .setFrom(0, 0, 0)
                    .setTo(16, 16, 16)
                    .addAll(base)
                    .bake()
            );
            break;
        case CUTOUT_MIPPED:
            //Overlay
            quads.addAll(QuadBuilder.withFormat(format)
                    .setFrom(0, 0, 0)
                    .setTo(16, 16, 16)
                    .setHasBrightness(true)
                    .addAll(overlay)
                    .bake()
            );
            break;
    }
    return quads;
}
项目:Solar    文件:BakedGravityHopper.java   
@Override
protected List<BakedQuad> getQuads(IBlockState state) {
    EnumFacing face = state.getValue(BlockDirectional.FACING);
    List<BakedQuad> quads = new ArrayList<>();
    switch(MinecraftForgeClient.getRenderLayer()) {
        case SOLID:
            //Base
            addCube(quads, face, base, base, base, false);
            break;
        case CUTOUT_MIPPED:
            //Overlay
            addCube(quads, face, overlay[0], overlay[1], overlay[2], true);
            break;
    }
    return quads;
}
项目:CustomWorldGen    文件:MultiLayerModel.java   
@Override
public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand)
{
    IBakedModel model;
    BlockRenderLayer layer = MinecraftForgeClient.getRenderLayer();
    if(layer == null)
    {
        return quads.get(Optional.fromNullable(side));
    }
    else if(!models.containsKey(Optional.of(layer)))
    {
        model = missing;
    }
    else
    {
        model = models.get(Optional.of(layer));
    }
    // assumes that child model will handle this state properly. FIXME?
    return model.getQuads(state, side, rand);
}
项目:placementpreview    文件:RenderEventHandler.java   
private void getQuads(ModelHolder holder, List<BakedQuad> quads)
{
    if (holder.actualState.getRenderType() == EnumBlockRenderType.MODEL/* ||
        holder.actualState.getRenderType() == EnumBlockRenderType.LIQUID*/)
    {
        BlockRenderLayer originalLayer = MinecraftForgeClient.getRenderLayer();

        for (BlockRenderLayer layer : BlockRenderLayer.values())
        {
            if (holder.actualState.getBlock().canRenderInLayer(holder.actualState, layer))
            {
                ForgeHooksClient.setRenderLayer(layer);

                for (final EnumFacing facing : EnumFacing.values())
                {
                    quads.addAll(holder.model.getQuads(holder.extendedState, facing, 0));
                }

                quads.addAll(holder.model.getQuads(holder.extendedState, null, 0));
            }
        }

        ForgeHooksClient.setRenderLayer(originalLayer);
    }
}
项目:RFUtilities    文件:ClientProxy.java   
@Override
public void init(FMLInitializationEvent event)
{
    super.init(event);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockCapacitor), new ItemRendererCapacitor());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockDiode), new ItemRendererDiode());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockResistor), new ItemRendererResistor());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockSwitch), new ItemRendererSwitch());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockInvisTess), new ItemRendererInvisTess());
    //MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockRFMeter), new ItemRendererRFMeter());
    MinecraftForgeClient.registerItemRenderer(RFUContent.itemMaterialTess, new ItemRendererMaterialTess());
    //MinecraftForgeClient.registerItemRenderer(RFUContent.itemMaterialDisplay, new ItemRendererMaterialDisplay());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RFUContent.blockTransistor), new ItemRendererTransistor());
    FMLCommonHandler.instance().bus().register(new KeyInputHandler());
    KeyBindings.init();
}
项目:PrimitiveCraft    文件:ClientProxy.java   
@Override
    public void initRenders()
    {
        RenderIds.campfire = RenderingRegistry.getNextAvailableRenderId();
        ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire());
        ClientRegistry.bindTileEntitySpecialRenderer(TileHardJug.class, new TileRenderJug());

        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.hardjug), new ItemRenderJug());
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.campfire), new ItemRenderCampfire());

//      ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire());
        if(Loader.isModLoaded("NotEnoughItems"))
        {

        }
    }
项目:PowerLines    文件:ClientProxy.java   
@Override
public void registerTileEntitiesRenderers() {
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLargePowerLine.class, new LargePowerLineRenderer());
    MinecraftForgeClient.registerItemRenderer(
            Item.getItemFromBlock(PowerLinesMod.blocks.largePowerLine),
            new LargePowerLineItemRenderer()
        );

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySubStation.class, new SubStationRenderer());
    MinecraftForgeClient.registerItemRenderer(
            Item.getItemFromBlock(PowerLinesMod.blocks.subStation),
            new SubStationItemRenderer()
    );

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMediumPowerLine.class, new MediumPowerLineRenderer());
    MinecraftForgeClient.registerItemRenderer(
            Item.getItemFromBlock(PowerLinesMod.blocks.mediumPowerLine),
            new MediumPowerLineItemRenderer()
    );
}
项目:LookingGlass    文件:FrameBufferContainer.java   
private void allocateFrameBuffer() {
    if (this.framebuffer != 0) return;

    this.framebuffer = EXTFramebufferObject.glGenFramebuffersEXT(); //Release via: EXTFramebufferObject.glDeleteFramebuffersEXT(framebuffer);
    this.depthBuffer = EXTFramebufferObject.glGenRenderbuffersEXT(); //Release via: EXTFramebufferObject.glDeleteRenderbuffersEXT(depthBuffer);

    EXTFramebufferObject.glBindFramebufferEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, this.framebuffer);

    EXTFramebufferObject.glBindRenderbufferEXT(EXTFramebufferObject.GL_RENDERBUFFER_EXT, depthBuffer);
    if (MinecraftForgeClient.getStencilBits() == 0) EXTFramebufferObject.glRenderbufferStorageEXT(EXTFramebufferObject.GL_RENDERBUFFER_EXT, GL14.GL_DEPTH_COMPONENT24, width, height);
    else EXTFramebufferObject.glRenderbufferStorageEXT(EXTFramebufferObject.GL_RENDERBUFFER_EXT, org.lwjgl.opengl.EXTPackedDepthStencil.GL_DEPTH24_STENCIL8_EXT, width, height);

    EXTFramebufferObject.glFramebufferRenderbufferEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, EXTFramebufferObject.GL_DEPTH_ATTACHMENT_EXT, EXTFramebufferObject.GL_RENDERBUFFER_EXT, depthBuffer);
    if (MinecraftForgeClient.getStencilBits() != 0) EXTFramebufferObject.glFramebufferRenderbufferEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, EXTFramebufferObject.GL_STENCIL_ATTACHMENT_EXT, EXTFramebufferObject.GL_RENDERBUFFER_EXT, depthBuffer);

    this.texture = GL11.glGenTextures(); //Release via: GL11.glDeleteTextures(colorTexture);
    GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.texture);
    GL11.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);
    GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA8, width, height, 0, GL11.GL_RGBA, GL11.GL_INT, (java.nio.ByteBuffer) null);
    EXTFramebufferObject.glFramebufferTexture2DEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, EXTFramebufferObject.GL_COLOR_ATTACHMENT0_EXT, GL11.GL_TEXTURE_2D, this.texture, 0);

    EXTFramebufferObject.glBindFramebufferEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, 0);
}
项目:network    文件:ClientProxy.java   
private void registerRenderers()
{
    MinecraftForge.EVENT_BUS.register(new LineRenderer(Minecraft.getMinecraft()));

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransporter.class, new TransporterRenderer());

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.transporter),
            new TransporterItemRenderer());

    MinecraftForgeClient.registerItemRenderer(ModItems.redLED,
            new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.RED_LED)));
    MinecraftForgeClient.registerItemRenderer(ModItems.blueLED,
            new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.BLUE_LED)));
    MinecraftForgeClient.registerItemRenderer(ModItems.greenLED,
            new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.GREEN_LED)));
    MinecraftForgeClient.registerItemRenderer(ModItems.itemCore,
            new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.ITEM_CRYSTAL)));
    MinecraftForgeClient.registerItemRenderer(ModItems.fluidCore,
            new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.FLUID_CRYSTAL)));
}
项目:amunra    文件:ClientProxy.java   
public static void registerItemRenderers()
{
    MinecraftForgeClient.registerItemRenderer(ARItems.shuttleItem, new ItemRendererShuttle(rocketModel));

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ARBlocks.blockShuttleDock.getBlock()), new ItemRendererSpecial1());


    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ARBlocks.metaBlockMothershipEngineJet), new ItemRendererJet(
            new IModelCustom[]{engineModel, engineModelIon},
            new ResourceLocation[] {
                    new ResourceLocation(AmunRa.instance.ASSETPREFIX, "textures/model/jet.png"),
                    new ResourceLocation(AmunRa.instance.ASSETPREFIX, "textures/model/jet-ion.png")
                    }
            ));

}
项目:Hard-Science    文件:SuperDispatcher.java   
@Override
public boolean isAmbientOcclusion()
{

    BlockRenderLayer layer = MinecraftForgeClient.getRenderLayer();
    if(layer == null) return true;

    switch(layer)
    {
    case SOLID:
        return !this.blockRenderMode.isSolidLayerFlatLighting;

    case TRANSLUCENT:
        return !this.blockRenderMode.isTranlucentLayerFlatLighting;

    default:
        return true;
    }
}
项目:Hard-Science    文件:SuperBlockTESR.java   
protected void renderBlock(SuperTileEntity te, BufferBuilder buffer)
{
    SuperBlock block = (SuperBlock) te.getBlockType();
    if(block.blockRenderMode != BlockRenderMode.TESR) return;

    if(MinecraftForgeClient.getRenderPass() == 0)
    {
        ForgeHooksClient.setRenderLayer(BlockRenderLayer.SOLID);

        // FIXME: only do this when texture demands it and use FastTESR other times
        GlStateManager.disableAlpha();
        renderBlockInner(te, block, false, buffer);
        GlStateManager.enableAlpha();
        ForgeHooksClient.setRenderLayer(null);
    }
    else if(MinecraftForgeClient.getRenderPass() == 1)
    {
        ForgeHooksClient.setRenderLayer(BlockRenderLayer.TRANSLUCENT);
        renderBlockInner(te, block, true, buffer);
        ForgeHooksClient.setRenderLayer(null);
    }
}
项目:Woodcraft    文件:ClientProxy.java   
@Override
public void initRenderingAndTextures()
{
    FMLCommonHandler.instance().bus().register(new ClientTickHandler());

    RenderIds.mechanicalRoot = RenderingRegistry.getNextAvailableRenderId();
    RenderIds.rotaryShaft = RenderingRegistry.getNextAvailableRenderId();
    RenderIds.windTurbine = RenderingRegistry.getNextAvailableRenderId();

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.mechanicalRoot), new ItemRendererMechanicalRoot());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.rotaryShaft), new ItemRendererRotaryShaft());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.windTurbine), new ItemRendererWindTurbine());

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMechanicalRoot.class, new TileEntityRendererMechanicalRoot());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRotaryShaft.class, new TileEntityRendererRotaryShaft());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWindTurbine.class, new TileEntityRendererWindTurbine());
}
项目:AdvancedPotions    文件:APClientProxy.java   
@Override
public void registerRenderThings() {
    RenderTEAdvancedCauldron.renderId = RenderingRegistry.getNextAvailableRenderId();
    RenderAdvancedBeacon.renderId = RenderingRegistry.getNextAvailableRenderId();

    RenderingRegistry.registerBlockHandler(new RenderTEAdvancedCauldron());
    RenderingRegistry.registerBlockHandler(new RenderAdvancedBeacon());

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAdvancedBeacon.class, new RenderAdvancedBeacon());

    RenderingRegistry.registerEntityRenderingHandler(EntityHostilePig.class, new RenderHostilePig(new ModelPig(), new ModelPig(), 0.5f));
    RenderingRegistry.registerEntityRenderingHandler(EntityThrownCapsule.class, new RenderThrownCapsule());

    MinecraftForgeClient.registerItemRenderer(AdvancedPotions.potion, new RenderItemPotion());
    MinecraftForgeClient.registerItemRenderer(AdvancedPotions.shield, new RenderItemShield());
}
项目:RidiculousWorld    文件:ClientProxy.java   
public void doTheRenderThing(){
    RenderingRegistry.registerEntityRenderingHandler(EntityFrankenstein.class, new RenderFrankenstein());
    RenderingRegistry.registerEntityRenderingHandler(EntityWarhorse.class, new RenderWarhorse());
    RenderingRegistry.registerEntityRenderingHandler(EntityPeep.class, new RenderPeep());
    RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, new RenderUnicorn());
    RenderingRegistry.registerEntityRenderingHandler(EntityCalavera.class, new RenderCalavera());
    RenderingRegistry.registerEntityRenderingHandler(EntityGingerbread.class, new RenderGingerbread());
    RenderingRegistry.registerEntityRenderingHandler(EntityShoggoth.class, new RenderShoggoth());
    RenderingRegistry.registerEntityRenderingHandler(EntityDaySkeleton.class, new RenderSkeleton());
    RenderingRegistry.registerEntityRenderingHandler(EntityDayZombie.class, new RenderZombie());
    RenderingRegistry.registerEntityRenderingHandler(EntityShadowSlime.class, new RenderShadowSlime());
    RenderingRegistry.registerEntityRenderingHandler(EntityCandySheep.class, new RenderCandySheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
    RenderingRegistry.registerEntityRenderingHandler(EntityOldEnderman.class, new RenderOldEnderman());

    if(Config.heads && !Loader.isModLoaded("foxlib")){
        TileEntityRendererDispatcher.instance.mapSpecialRenderers.remove(TileEntitySkull.class);
        BlockSkullRenderer blockSkullRenderer = new BlockSkullRenderer();
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, blockSkullRenderer);
    }

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChestRidiculous.class, new RenderTileEntityChest());
    BlockChestRidiculous.render = RenderingRegistry.getNextAvailableRenderId();
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RidiculousBlocks.chest), new RenderItemChest());

    ShaderHelper.initShaders();
}
项目:Framez    文件:ClientProxy.java   
@Override
public void registerRenderers() {

    MinecraftForge.EVENT_BUS.register(new IconSupplier());

    ClientRegistry.bindTileEntitySpecialRenderer(TileMoving.class, new RenderMoving());
    MinecraftForgeClient.registerItemRenderer(FramezItems.frame, new RenderFrame());

    RenderMotor motorRenderer = new RenderMotor();
    ClientRegistry.bindTileEntitySpecialRenderer(TileMotor.class, motorRenderer);
    RenderingRegistry.registerBlockHandler(motorRenderer);
    for (Block m : FramezBlocks.motors.keySet())
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(m), motorRenderer);

    MinecraftForge.EVENT_BUS.register(new RenderMovementBlocking());
    MinecraftForge.EVENT_BUS.register(new MOPHelper());
}
项目:IlluminatedBows    文件:ClientProxy.java   
public void registerRenderers()
{
    RenderingRegistry.registerEntityRenderingHandler(EntityIlluminatedArrow.class, new RenderIlluminatedArrow());

    if (Loader.isModLoaded("Thaumcraft"))
    {
        ItemStack stack = GameRegistry.findItemStack("Thaumcraft", "WandCasting", 1);
        IItemRenderer wandRenderer = MinecraftForgeClient.getItemRenderer(stack, ItemRenderType.EQUIPPED_FIRST_PERSON);
        RenderWandHandler render = new RenderWandHandler(wandRenderer);
        MinecraftForgeClient.registerItemRenderer(stack.getItem(), render);
        FMLCommonHandler.instance().bus().register(render);
    }

    IlluminatedBows.renderIdIllumination = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new RenderIllumination());
}
项目:TectoCraft    文件:ClientProxy.java   
public void registerRenderers(){
      TileEntitySpecialRenderer render = new RenderElectricEngine();
      TileEntitySpecialRenderer render2 = new RenderOilEngine();
      TileEntitySpecialRenderer render3 = new RenderOilPump();
      TileEntitySpecialRenderer render4 = new RenderLiquidTank();
      TileEntitySpecialRenderer render5 = new RenderFluidPipe();
      TileEntitySpecialRenderer render6 = new RenderElectricPipe();
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricEngine.class, render);
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilEngine.class, render2);
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilPump.class, render3);
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluidPipe.class, render5);
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLiquidTank.class, render4);
      ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricPipe.class, render6);
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricEngine), new ItemRendererElectricEngine(render, new TileEntityElectricEngine()));
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilEngine), new ItemRendererOilEngine(render2, new TileEntityOilEngine()));
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilPump), new ItemRendererOilPump(render3, new TileEntityOilPump()));
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.liquidTank), new ItemRendererLiquidTank(render4, new TileEntityLiquidTank()));
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.fluidPipe), new ItemRendererFluidPipe(render5, new TileEntityFluidPipe()));
      MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricPipe), new ItemRendererElectricPipe(render6, new TileEntityElectricPipe()));
      MinecraftForgeClient.registerItemRenderer(TectoCraft.minigun, new ItemRenderMinigun());
      MinecraftForgeClient.registerItemRenderer(TectoCraft.iphone6, new ItemRenderIphone6());
      MinecraftForgeClient.registerItemRenderer(TectoCraft.nethersBane, new ItemRenderNethersBane());
      MinecraftForgeClient.registerItemRenderer(TectoCraft.tectonicMultitool, new ItemRenderTectoMultitool());
}
项目:BeanCraft    文件:ClientProxy.java   
public static void initMod()
{
    MinecraftForgeClient.registerItemRenderer(ModItems.bioCrystal, new ItemRendererBioCrystal());
    MinecraftForgeClient.registerItemRenderer(ModItems.infusedHoe, new ItemRendererInfusedHoe());
    MinecraftForgeClient.registerItemRenderer(ModItems.infusedHoeOne, new ItemRendererInfusedHoe());

    TileEntitySpecialRenderer render = new BlockRendererBioGenerator();
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioGen), new ItemRendererBioGenerator(render, new TileEntityBioGenerator()));

    TileEntitySpecialRenderer render1 = new BlockRendererBioInfuser();
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioInfuser), new ItemRendererBioInfuser(render1, new TileEntityBioInfuser()));

    TileEntitySpecialRenderer render2 = new BlockRendererBioExtractor();
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioExtractor), new ItemRendererBioExtractor(render2, new TileEntityBioExtractor()));

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioGenerator.class, new BlockRendererBioGenerator());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioInfuser.class, new BlockRendererBioInfuser());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioExtractor.class, new BlockRendererBioExtractor());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioPipe.class, new TileEntityRendererPipe());
}
项目:rpginventory    文件:MSClientProxy.java   
@Override
public void registerRendering() {

    RenderingRegistry.registerEntityRenderingHandler(
            EntityElementalBlock.class, new RenderElementalBlock());

    if (RpgConfig.instance.render3D) {
        MinecraftForgeClient.registerItemRenderer(
                RpgArchmageAddon.frostStaff, new RenderElementStaff());
        MinecraftForgeClient.registerItemRenderer(RpgArchmageAddon.fireStaff,
                new RenderElementStaff());
        MinecraftForgeClient.registerItemRenderer(
                RpgArchmageAddon.earthStaff, new RenderElementStaff());
        MinecraftForgeClient.registerItemRenderer(RpgArchmageAddon.windStaff,
                new RenderElementStaff());
        MinecraftForgeClient.registerItemRenderer(
                RpgArchmageAddon.ultimateStaff, new RenderElementStaff());

        MinecraftForgeClient.registerItemRenderer(RpgArchmageAddon.archBook,
                new BookRenderer(new ModelMageBook(),
                        "subaraki:jewels/talisman.png"));
    }
}
项目:rpginventory    文件:ClientProxy.java   
@Override
    public void registerRenderInformation() {
//      RpgBaseAddon.Channel.register(new ClientPacketHandler());

        KeyHandler ability = new KeyHandler();
        RpgUtility.registerSpecialAbility(RpgBaseAddon.hammer, ability);
        RpgUtility.registerSpecialAbility(RpgBaseAddon.soulSphere, ability);
        RpgUtility.registerSpecialAbility(RpgBaseAddon.elfbow, ability);


        if (RpgConfig.instance.render3D == true) {
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.hammer,new HammerRender());
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.soulSphere,new SoulSphereRender());
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.lunarStaff,new StaffRenderer());
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.elfbow,new BowRender());

            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.berserkerShield, new BerserkerShield(new ModelIronThorn(), "subaraki:jewels/IronThorn.png"));
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.archerShield, new ArcherShield(new ModelShield(), "subaraki:jewels/Shield1.png"));
            MinecraftForgeClient.registerItemRenderer(RpgBaseAddon.talisman,new BookRenderer(new ModelMageBook(),"subaraki:jewels/mageShield.png"));

            RenderingRegistry.registerEntityRenderingHandler(EntityHellArrow.class,new RenderArrow());
        }
    }
项目:rpginventory    文件:ClientProxy.java   
@Override
public void registerRenderInformation() {

    SpecialAbility ability = new SpecialAbility();
    RpgUtility.registerSpecialAbility(RpgDreadAddon.necroSkull, ability);
    RpgUtility.registerSpecialAbility(RpgDreadAddon.paladinSword, ability);

    if (RpgConfig.instance.render3D) {
        MinecraftForgeClient.registerItemRenderer(RpgDreadAddon.necroSkull,new NecroRenderer());
        MinecraftForgeClient.registerItemRenderer(RpgDreadAddon.paladinSword,new PaladinSwordRenderer());

        MinecraftForgeClient.registerItemRenderer(RpgDreadAddon.necroShield,new NecroShieldRenderer(new NecroShield(),"subaraki:jewels/NecroShield.png"));

        MinecraftForgeClient.registerItemRenderer(RpgDreadAddon.paladinShield,new PalaRenderer(new PalaShield(),"subaraki:jewels/PaladinShield.png"));
    }

    RenderingRegistry.registerEntityRenderingHandler(EntityMinionS.class,new RenderMinionS());
    RenderingRegistry.registerEntityRenderingHandler(EntityMinionZ.class,new RenderMinionZ());

}
项目:MyMod    文件:ClientProxy.java   
@Override
public void registerRenderers() {

    LibRender.WHEEL_ID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(RenderBlockWheel.INSTANCE);
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWheel.class,
            RenderTileEntityWheel.INSTANCE);

    MinecraftForgeClient.registerItemRenderer(ModItems.gun,
            RenderItemGun.INSTANCE);

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySphere.class,
            RenderTileEntitySphere.INSTANCE);

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDisplay.class,
            RenderTileEntityDisplay.INSTANCE);

    RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class,
            RenderEntityBullet.INSTANCE);

    RenderClockHUD.init();

}
项目:Magicians-Artifice    文件:ClientProxy.java   
private void renderItems() {
    //normal items
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.magiciansWand, new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.magiciansWand2, new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.magiciansWand3, new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.creativeWand, new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.beastClaws, new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(ItemRegistry.wand, new CustomItemRenderer());

    //block items
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.mysticAnvil), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.wandCarver), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.tank), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.wandMaker), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.wandMakerLit), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.dragonAltar), new CustomItemRenderer());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockRegistry.pedestal), new CustomItemRenderer());
}
项目:ZeroQuest    文件:ClientProxy.java   
public void registerRenderThings() {
    RenderingRegistry.registerEntityRenderingHandler(EntityZertum.class, new RenderZertum(new ModelZertum(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityRedZertum.class, new RenderRedZertum(new ModelRedZertum(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityDarkZertum.class, new RenderDarkZertum(new ModelDarkZertum(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityDestroZertum.class, new RenderDestroZertum(new ModelDestroZertum(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityJakan.class, new RenderJakan(new ModelJakan(), 1.0F));
    RenderingRegistry.registerEntityRenderingHandler(EntityIceZertum.class, new RenderIceZertum(new ModelIceZertum(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityForisZertum.class, new RenderForisZertum(new ModelForisZertum(), 0.5F));

    RenderingRegistry.registerEntityRenderingHandler(EntityKurr.class, new RenderKurr(new ModelKurr(), 1.0F));
    RenderingRegistry.registerEntityRenderingHandler(EntityKortor.class, new RenderKortor(new ModelKortor(), 1.0F));

    RenderingRegistry.registerEntityRenderingHandler(EntityFlamingPoisonball.class, new RenderFPoisonball(1));
    RenderingRegistry.registerEntityRenderingHandler(EntityIceball.class, new RenderIceball(Items.snowball, 1));
    RenderingRegistry.registerEntityRenderingHandler(EntityFireball.class, new RenderFireball(Items.fire_charge, 1));
    RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new RenderGrenade(ModItems.nileGrenade));

    TileEntitySpecialRenderer render = new RendererNileTable();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNileTable.class, render);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.nileWorktable), new ItemRendererNileTable(render, new TileEntityNileTable()));
}
项目:Chisel-1.7.2    文件:ProxyClient.java   
@Override
    public void init() {
        RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
        RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
        RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
        RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());


        RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());

        RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
        RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));


        MinecraftForgeClient.registerItemRenderer(Chisel.chisel, renderer);
//      MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);

    }
项目:Chisel    文件:ProxyClient.java   
@Override
    public void init() {
        RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer());
        RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer());
        RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer());
        RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer());
        RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer());
        RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer());
        RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer());

        RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer());
        RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle));
        RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss));


        MinecraftForgeClient.registerItemRenderer(Chisel.chisel.itemID, renderer);
//      MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer);

    }
项目:MateriaMuto    文件:ClientProxy.java   
@Override
public void preInit(FMLPreInitializationEvent event) {
    super.preInit(event);

    MinecraftForge.EVENT_BUS.register(new ItemTooltipEventHandler());

    FMLCommonHandler.instance().bus().register(new KeyInputEventHandler());
    ClientRegistry.registerKeyBinding(Keybindings.charge);
    ClientRegistry.registerKeyBinding(Keybindings.mode);
    ClientRegistry.registerKeyBinding(Keybindings.release);
    ClientRegistry.registerKeyBinding(Keybindings.toggle);

    AdvancedModelLoader.registerModelHandler(new TechneModelLoader());

    ClientRegistry.bindTileEntitySpecialRenderer(TileCondenser.class, new RenderTileCondenser());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.condenser), new RenderItemCondenser());

    ClientRegistry.bindTileEntitySpecialRenderer(TileAlchemicalChest.class, new RenderTileAlchemicalChest());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.alchemicalChest), new RenderItemAlchemicalChest());

    ClientRegistry.bindTileEntitySpecialRenderer(TileCollector.class, new RenderTileCollector());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.collector), new RenderItemCollector());
}
项目:MagicalRings    文件:ProxyClient.java   
@Override
public void init() {
    super.init();
    ModLibs.altarRenderID = RenderingRegistry.getNextAvailableRenderId();
    ModLibs.ctRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderAltar altarRenderer = new RenderAltar();

    RenderingRegistry.registerBlockHandler(new RenderCTBlock(ModLibs.ctRenderID));

    ClientRegistry.bindTileEntitySpecialRenderer(TileAltar.class, altarRenderer);
    ClientRegistry.bindTileEntitySpecialRenderer(TileItemAltar.class, altarRenderer);

    MinecraftForgeClient.registerItemRenderer(ModItems.spellParchment, new RenderSpellParchment());
    MinecraftForgeClient.registerItemRenderer(ModItems.ghostSword, new RenderGhostSword());
    MinecraftForgeClient.registerItemRenderer(ModItems.magicRing, new RenderRing());


    FMLCommonHandler.instance().bus().register(tickClient);

    MinecraftForge.EVENT_BUS.register(renderHandler);

    VillagerRegistry.instance().registerVillagerSkin(ModLibs.villagerID, new ResourceLocation(ModLibs.MOD_ID.toLowerCase() + ":textures/entities/manaVillager.png"));
}
项目:Chisel-2    文件:RenderChiselSnowman.java   
protected void renderEquippedItems(EntityChiselSnowman snowman, float size){
    super.renderEquippedItems(snowman, size);
    ItemStack itemStack = snowman.getEquipmentInSlot(2);

    if(itemStack.getItem() instanceof ItemBlock){
        GL11.glPushMatrix();
        this.snowMan.head.postRender(0.0625F);

        IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemStack, EQUIPPED);
        boolean is3D = (customRenderer != null && customRenderer.shouldUseRenderHelper(EQUIPPED, itemStack, BLOCK_3D));

        if(is3D || RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemStack.getItem()).getRenderType())){
            float f1 = 0.625F;
            GL11.glTranslatef(0.0F, -0.34375F, 0.0F);
            GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
            GL11.glScalef(f1, -f1, f1);
        }
        this.renderManager.itemRenderer.renderItem(snowman, itemStack, 0);
        GL11.glPopMatrix();
    }
}
项目:Chisel-2    文件:RendererMultiLayer.java   
@Override
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId, RenderBlocks renderer) {
    if (blck == null || !(blck instanceof BlockMultiLayerBase))
        return false;
    BlockMultiLayerBase block = (BlockMultiLayerBase) blck;

    if (MinecraftForgeClient.getRenderPass() == 0) {
        if (block.icon != null) {
            renderer.overrideBlockTexture = block.icon;
            renderer.renderStandardBlock(block, x, y, z);
            renderer.overrideBlockTexture = null;
            return true;
        } else if (block.base != null) {
            renderer.renderBlockByRenderType(block.base, x, y, z);
            return true;
        }
    } else {
        renderer.setRenderBounds(0, 0, 0, 1, 1, 1);
        return renderer.renderStandardBlock(block, x, y, z);
    }

    return false;
}
项目:Dimensional-Pockets    文件:ClientProxy.java   
@Override
public void initClientSide() {
    ShaderHelper.initShaders();

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.dimensionalPocket), new ItemPocketRenderer());

    ClientRegistry.bindTileEntitySpecialRenderer(TileDimensionalPocket.class, new TileRendererPocket());
    ClientRegistry.bindTileEntitySpecialRenderer(TileDimensionalPocketWallConnector.class, new TileRendererPocketWall());

    MinecraftForge.EVENT_BUS.register(new BlockEventHandler());

    ClientEventHandler ceh = new ClientEventHandler();
    MinecraftForge.EVENT_BUS.register(ceh);
    FMLCommonHandler.instance().bus().register(ceh);

    MinecraftForge.EVENT_BUS.register(new RenderEventHandler());
}
项目:GardenCollection    文件:ClientProxy.java   
@Override
public void registerRenderers () {
    heavyChainRenderID = RenderingRegistry.getNextAvailableRenderId();
    lightChainRenderID = RenderingRegistry.getNextAvailableRenderId();
    latticeRenderID = RenderingRegistry.getNextAvailableRenderId();
    lanternRenderID = RenderingRegistry.getNextAvailableRenderId();
    fenceRenderID = RenderingRegistry.getNextAvailableRenderId();
    sconceRenderID = RenderingRegistry.getNextAvailableRenderId();
    hoopRenderID = RenderingRegistry.getNextAvailableRenderId();

    lanternRenderer = new LanternRenderer();

    RenderingRegistry.registerBlockHandler(heavyChainRenderID, new HeavyChainRenderer());
    RenderingRegistry.registerBlockHandler(lightChainRenderID, new LightChainRenderer());
    RenderingRegistry.registerBlockHandler(latticeRenderID, new LatticeRenderer());
    RenderingRegistry.registerBlockHandler(lanternRenderID, lanternRenderer);
    RenderingRegistry.registerBlockHandler(fenceRenderID, new FenceRenderer());
    RenderingRegistry.registerBlockHandler(sconceRenderID, new CandelabraRenderer());
    RenderingRegistry.registerBlockHandler(hoopRenderID, new HoopRenderer());

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.lantern), new LanternItemRenderer());
}
项目:Cauldron    文件:RenderSnowMan.java   
protected void renderEquippedItems(EntitySnowman p_77029_1_, float p_77029_2_)
{
    super.renderEquippedItems(p_77029_1_, p_77029_2_);
    ItemStack itemstack = new ItemStack(Blocks.pumpkin, 1);

    if (itemstack.getItem() instanceof ItemBlock)
    {
        GL11.glPushMatrix();
        this.snowmanModel.head.postRender(0.0625F);

        IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack, EQUIPPED);
        boolean is3D = (customRenderer != null && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack, BLOCK_3D));

        if (is3D || RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack.getItem()).getRenderType()))
        {
            float f1 = 0.625F;
            GL11.glTranslatef(0.0F, -0.34375F, 0.0F);
            GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
            GL11.glScalef(f1, -f1, f1);
        }

        this.renderManager.itemRenderer.renderItem(p_77029_1_, itemstack, 0);
        GL11.glPopMatrix();
    }
}
项目:Cauldron    文件:RenderSnowMan.java   
protected void renderEquippedItems(EntitySnowman p_77029_1_, float p_77029_2_)
{
    super.renderEquippedItems(p_77029_1_, p_77029_2_);
    ItemStack itemstack = new ItemStack(Blocks.pumpkin, 1);

    if (itemstack.getItem() instanceof ItemBlock)
    {
        GL11.glPushMatrix();
        this.snowmanModel.head.postRender(0.0625F);

        IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(itemstack, EQUIPPED);
        boolean is3D = (customRenderer != null && customRenderer.shouldUseRenderHelper(EQUIPPED, itemstack, BLOCK_3D));

        if (is3D || RenderBlocks.renderItemIn3d(Block.getBlockFromItem(itemstack.getItem()).getRenderType()))
        {
            float f1 = 0.625F;
            GL11.glTranslatef(0.0F, -0.34375F, 0.0F);
            GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);
            GL11.glScalef(f1, -f1, f1);
        }

        this.renderManager.itemRenderer.renderItem(p_77029_1_, itemstack, 0);
        GL11.glPopMatrix();
    }
}
项目:Quantum-Energistics-2    文件:ClientProxy.java   
@Override
public void registerRendering() {

    //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new QmRenderPalladiumWire());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new RenderPalladiumWire());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPotionDispencer.class, new RenderPotionDispencer());

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCreativeEnergyCell.class, new RenderEnergyCell("CREATIVE"));
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBasicEnergyCell.class, new RenderEnergyCell("BASIC"));

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.palladiumWire), ItemRenderPalladiumWire.instance);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.potionDispencer), ItemRenderPotionDispencer.instance);

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.creativeEnergyCell), ItemRenderEnergyCell.instanceCreative);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.basicEnergyCell), ItemRenderEnergyCell.instanceBasic);
}
项目:archimedes-ships    文件:ClientProxy.java   
@Override
public void registerRenderers()
{
    RenderingRegistry.registerEntityRenderingHandler(EntityShip.class, new RenderShip());
    RenderingRegistry.registerEntityRenderingHandler(EntityParachute.class, new RenderParachute());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGauge.class, new TileEntityGaugeRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer( TileEntityHelm.class, new TileEntityModelHelmRenderer() );
    ClientRegistry.bindTileEntitySpecialRenderer( TileEntityEngine.class, new TileEntityModelEngineRenderer() );
    MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock( ArchimedesShipMod.blockMarkShip ), new ItemModelHelmRenderer( new TileEntityModelHelmRenderer(), new TileEntityHelm() ) );
    MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock( ArchimedesShipMod.blockEngine ), new ItemModelEngineRenderer( new TileEntityModelEngineRenderer(), new TileEntityEngine() ) );
    //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHelm.class, new TileEntityHelmRenderer());
    BlockGauge.gaugeBlockRenderID = RenderingRegistry.getNextAvailableRenderId();
    BlockSeat.seatBlockRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(BlockSeat.seatBlockRenderID, new RenderBlockSeat());
    RenderingRegistry.registerBlockHandler(BlockGauge.gaugeBlockRenderID, new RenderBlockGauge());
}
项目:Draconix-ThePowerOfUseres    文件:ClientProxy.java   
public void registerRenderThings() {

    TileEntitySpecialRenderer render = new RenderElderFurnace();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElderFurnace.class, render);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.ElderFurnace), new ItemRenderElderFurnace(render, new TileEntityElderFurnace()));

    TileEntitySpecialRenderer render2 = new RenderPylonCrystal();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPylonCrystal.class, render2);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.PylonCrystal), new ItemRenderPylonCrystal(render2, new TileEntityPylonCrystal()));

    TileEntitySpecialRenderer render3 = new RenderResearchTable();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResearchTable.class, render3);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.ResearchTable), new ItemRenderResearchTable(render3, new TileEntityResearchTable()));

    TileEntitySpecialRenderer render4 = new RenderStabiliserMatrix();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStabiliserMatrix.class, render4);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.StabiliserMatrix), new ItemRenderStabiliserMatrix(render4, new TileEntityStabiliserMatrix()));

}
项目:Rubedo    文件:ContentTools.java   
@Override
public void registerBase() {
    super.registerBase();

    this.initializeToolMaterials();

    for (ToolBase kind : this.getItems()) {
        ToolBaseRenderer renderer = new ToolBaseRenderer();
        MinecraftForgeClient.registerItemRenderer(kind, renderer);
    }

    // Get all materials
    for (MaterialMultiItem material : this.getMaterials()) {
        this.registerMaterial(material.getClass());
    }

    itemAutoRepair = new ItemAutoRepair();
    GameRegistry.registerItem(itemAutoRepair, "itemautorepair");
}