Java 类cpw.mods.fml.client.registry.RenderingRegistry 实例源码

项目:connor41-etfuturum2    文件:ClientProxy.java   
private void registerBlockRenderers() {
    if (EtFuturum.enableSlimeBlock)
        RenderingRegistry.registerBlockHandler(new BlockSlimeBlockRender());

    if (EtFuturum.enableDoors)
        RenderingRegistry.registerBlockHandler(new BlockDoorRenderer());

    if (EtFuturum.enableBanners)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBanner.class, new TileEntityBannerRenderer());

    if (EtFuturum.enableFancySkulls)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, new TileEntityFancySkullRenderer());

    if (EtFuturum.enableChorusFruit) {
        RenderingRegistry.registerBlockHandler(new BlockEndRodRender());
        RenderingRegistry.registerBlockHandler(new BlockChorusFlowerRender());
        RenderingRegistry.registerBlockHandler(new BlockChorusPlantRender());
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEndRod.class, new TileEntityEndRodRenderer());
    }

    if (EtFuturum.enableColourfulBeacons)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNewBeacon.class, new TileEntityNewBeaconRenderer());

    RenderingRegistry.registerBlockHandler(new BlockChestRenderer());
}
项目:4Space-5    文件:ClientProxyCore.java   
public static void registerBlockHandlers()
{
    ClientProxyCore.renderIdTreasureChest = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdTorchUnlit = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdBreathableAir = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdOxygenPipe = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdMeteor = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdCraftingTable = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdLandingPad = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdMachine = RenderingRegistry.getNextAvailableRenderId();
    ClientProxyCore.renderIdParachest = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererTreasureChest(ClientProxyCore.renderIdTreasureChest));
    RenderingRegistry.registerBlockHandler(new BlockRendererParachest(ClientProxyCore.renderIdParachest));
    RenderingRegistry.registerBlockHandler(new BlockRendererUnlitTorch(ClientProxyCore.renderIdTorchUnlit));
    RenderingRegistry.registerBlockHandler(new BlockRendererBreathableAir(ClientProxyCore.renderIdBreathableAir));
    RenderingRegistry.registerBlockHandler(new BlockRendererOxygenPipe(ClientProxyCore.renderIdOxygenPipe));
    RenderingRegistry.registerBlockHandler(new BlockRendererMeteor(ClientProxyCore.renderIdMeteor));
    RenderingRegistry.registerBlockHandler(new BlockRendererNasaWorkbench(ClientProxyCore.renderIdCraftingTable));
    RenderingRegistry.registerBlockHandler(new BlockRendererLandingPad(ClientProxyCore.renderIdLandingPad));
    RenderingRegistry.registerBlockHandler(new BlockRendererMachine(ClientProxyCore.renderIdMachine));
}
项目:4Space-5    文件:SmartRenderContext.java   
public static void registerRenderers(Class<?> type)
{
    Render render;
    try
    {
        render = (Render)type.newInstance();
    }
    catch (Exception e)
    {
        return;
    }

    RenderingRegistry.registerEntityRenderingHandler(EntityPlayerSP.class, render);
    RenderingRegistry.registerEntityRenderingHandler(EntityOtherPlayerMP.class, render);
    render.setRenderManager(RenderManager.instance);
}
项目: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"))
        {

        }
    }
项目:TFC-Additions    文件:ClientProxy.java   
@Override
public void Init(FMLInitializationEvent event){
    super.Init(event);

    CTMRendrerID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new CTMRenderer(CTMRendrerID));

    //if(CarpentersBlocksHandler.isLoaded())
    //    CarpentersBlocksHandler.Init();

    //Hide vanilla blocks in NEI
    if(NotEnoughItemsHandler.isLoaded() && ConfigHandler.HideNEI == true)
        NotEnoughItemsHandler.HideNEIItems();

    //Setup Creative Tab Icon
    ((CreativeTabs) CreativeTabs.TFCAdditions_Tab).setTabIconItemStack(new ItemStack(BlockSetup.StoneMMDent, 1, 5));
}
项目:roadstuff    文件:ClientProxy.java   
@Override
public void registerRender()
{
    renderConeId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderConeId, new RenderCone());
    renderAsphaltLinesId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderAsphaltLinesId, new RenderAsphaltLines());
    renderAsphaltCornerId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderAsphaltCornerId, new RenderAsphaltCorner());
    renderAsphaltArrowsId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderAsphaltArrowsId, new RenderAsphaltArrows());
    renderSlabAsphaltLineId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderSlabAsphaltLineId, new RenderSlabAsphaltLine());
    renderSlabAsphaltCornerId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderSlabAsphaltCornerId, new RenderSlabAsphaltCorner());
    renderSignPostId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderSignPostId, new RenderTrafficSign());
    renderReflectorId = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(renderReflectorId, new RenderReflector());
}
项目:NOVA-Core    文件:FWBlock.java   
public FWBlock(BlockFactory factory) {
    //TODO: Hack build() method
    super(getMcMaterial(factory));
    this.factory = factory;
    this.dummy = factory.build();
    if (dummy.components.has(BlockProperty.BlockSound.class)) {
        this.stepSound = new FWBlockSound(dummy.components.get(BlockProperty.BlockSound.class));
    } else {
        BlockProperty.BlockSound properties = dummy.components.add(new BlockProperty.BlockSound());
        properties.setBlockSound(BlockProperty.BlockSound.BlockSoundTrigger.BREAK, new Sound("", soundTypeStone.getBreakSound()));
        properties.setBlockSound(BlockProperty.BlockSound.BlockSoundTrigger.PLACE, new Sound("", soundTypeStone.func_150496_b()));
        properties.setBlockSound(BlockProperty.BlockSound.BlockSoundTrigger.WALK, new Sound("", soundTypeStone.getStepResourcePath()));
        this.stepSound = soundTypeStone;
    }
    this.blockClass = dummy.getClass();

    // Recalculate super constructor things after loading the block properly
    this.opaque = isOpaqueCube();
    this.lightOpacity = isOpaqueCube() ? 255 : 0;

    if (FMLCommonHandler.instance().getSide().isClient()) {
        blockRenderingID = RenderingRegistry.getNextAvailableRenderId();
    }
}
项目:JABBA    文件:ClientProxy.java   
public void registerRenderers()
{
    try
    {
        Field blockRendererField = RenderingRegistry.class.getDeclaredField("blockRenderers");
        blockRendererField.setAccessible(true);
        blockRenderers = (Map)blockRendererField.get(RenderingRegistry.instance());
    }
    catch (Throwable t) {}
    BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId();
    while (blockRenderers.containsKey(Integer.valueOf(BetterBarrels.blockBarrelRendererID))) {
        BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId();
    }
    RenderingRegistry.registerBlockHandler(BetterBarrels.blockBarrelRendererID, new BlockBarrelRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarrel.class, new TileEntityBarrelRenderer());
}
项目:mo-zombies    文件:ClientProxy.java   
public void registerRenderThings()
{
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieNotch.class, new RenderZombieNotch(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieMiner.class, new RenderZombieMiner(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieChef.class, new RenderZombieChef(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieCreeper.class, new RenderZombieCreeper(new ModelCreeper(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombiePirate.class, new RenderZombiePirate(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombiePa.class, new RenderZombiePa(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityNetherZombie.class, new RenderNetherZombie(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieCyborg.class, new RenderZombieCyborg(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieDwarf.class, new RenderZombieDwarf(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieHerobrine.class, new RenderZombieHerobrine(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieKing.class, new RenderZombieKing(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityZombieKnight.class, new RenderZombieKnight(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntityDiscoZombie.class, new RenderDiscoZombie(new ModelZombie(), 0));
    RenderingRegistry.registerEntityRenderingHandler(EntitySurvivor.class, new RenderSurvivor(new ModelBiped(), 0));
}
项目:amunra    文件:ClientProxy.java   
@Override
public void init(FMLInitializationEvent event)
{
    ISimpleBlockRenderingHandler myISBRH = new BlockRendererMultiOre();
    RenderingRegistry.registerBlockHandler(myISBRH.getRenderId(), myISBRH);

    ISimpleBlockRenderingHandler dummyRenderer = new BlockRendererDummy();
    RenderingRegistry.registerBlockHandler(dummyRenderer.getRenderId(), dummyRenderer);

    ISimpleBlockRenderingHandler msBoosterRenderer = new BlockRendererMothershipBooster();
    RenderingRegistry.registerBlockHandler(msBoosterRenderer.getRenderId(), msBoosterRenderer);

    ISimpleBlockRenderingHandler chestRenderer = new BlockRendererARChest();
    RenderingRegistry.registerBlockHandler(chestRenderer.getRenderId(), chestRenderer);

    SystemRenderEventHandler clientEventHandler = new SystemRenderEventHandler();
    FMLCommonHandler.instance().bus().register(clientEventHandler);
    MinecraftForge.EVENT_BUS.register(clientEventHandler);

    FMLCommonHandler.instance().bus().register(new TickHandlerClient());
}
项目:qcraft-mod    文件:QCraftProxyClient.java   
@Override
public void load()
{
    ItemQuantumGoggles.s_renderIndex = RenderingRegistry.addNewArmourRendererPrefix( "qcraft:goggles" );

    super.load();

    // Setup renderers
    int gateID = RenderingRegistry.getNextAvailableRenderId();
    QCraft.Blocks.quantumLogic.blockRenderID = gateID;

    m_renderBlocks = new RenderBlocks();
    QCraft.Blocks.qBlock.blockRenderID = RenderingRegistry.getNextAvailableRenderId();

    // Setup client forge handlers
    registerForgeHandlers();
}
项目:Et-Futurum    文件:ClientProxy.java   
private void registerBlockRenderers() {
    if (EtFuturum.enableSlimeBlock)
        RenderingRegistry.registerBlockHandler(new BlockSlimeBlockRender());

    if (EtFuturum.enableDoors)
        RenderingRegistry.registerBlockHandler(new BlockDoorRenderer());

    if (EtFuturum.enableBanners)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBanner.class, new TileEntityBannerRenderer());

    if (EtFuturum.enableFancySkulls)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, new TileEntityFancySkullRenderer());

    if (EtFuturum.enableChorusFruit) {
        RenderingRegistry.registerBlockHandler(new BlockEndRodRender());
        RenderingRegistry.registerBlockHandler(new BlockChorusFlowerRender());
        RenderingRegistry.registerBlockHandler(new BlockChorusPlantRender());
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEndRod.class, new TileEntityEndRodRenderer());
    }

    if (EtFuturum.enableColourfulBeacons)
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNewBeacon.class, new TileEntityNewBeaconRenderer());

    RenderingRegistry.registerBlockHandler(new BlockChestRenderer());
}
项目:Cooking-with-TFC    文件:ClientProxyCWTFC.java   
@Override
@SideOnly(Side.CLIENT)
public void registerRenderInformation()
{
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.mixingBowlRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderMixingBowl());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.prepTableRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderPrepTable());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.cookingPotRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderCookingPot());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.meatRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderMeat());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.bowlRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderBowl());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.clayOvenRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderClayOven());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.sandwichRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderSandwich());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.tableStorageRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderTableStorage());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.customCropRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderCrop());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.fruitTreeRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderFruitTree());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.nutLeavesRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderFruitTree());
    RenderingRegistry.registerBlockHandler(CWTFCBlocks.lumberConstructRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderLumberConstruct());
}
项目: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());
}
项目:Gadomancy    文件:ClientProxy.java   
public static <T extends Render> T unregisterRenderer(Class<? extends Entity> entityClass, Class<T> renderClass) {
    Injector registry = new Injector(RenderingRegistry.instance());
    List entityRenderers = registry.getField("entityRenderers");

    if(entityRenderers == null) {
        FMLLog.severe("Failed to get entityRenderers field in RenderingRegistry!");
        return null;
    }

    for(int i = 0; i < entityRenderers.size(); i++) {
        Injector pair = new Injector(entityRenderers.get(i));

        Class<? extends Entity> target = pair.getField("target");

        if(entityClass.equals(target)) {
            Render render = pair.getField("renderer");
            if(renderClass.isInstance(render)) {
                entityRenderers.remove(i);
                return (T)render;
            }
        }
    }
    return null;
}
项目:Gadomancy    文件:ItemRenderRemoteJar.java   
@Override
public void renderItem(IItemRenderer.ItemRenderType type, ItemStack stack, Object... data) {
    GL11.glEnable(GL11.GL_ALPHA_TEST);

    AspectList aspects = ((ItemJarFilled)ConfigItems.itemJarFilled).getAspects(stack);
    if(aspects != null) {
        tile.aspect = aspects.getAspects()[0];
        tile.amount = aspects.getAmount(tile.aspect);
    } else {
        tile.aspect = null;
        tile.amount = 0;
    }

    if(stack.hasTagCompound()) {
        tile.networkId = NBTHelper.getUUID(stack.getTagCompound(), "networkId");
    }

    super.renderItem(type, stack, data);

    GL11.glPushMatrix();
    GL11.glTranslatef(0.5f, 0.5f, 0.5f);

    RenderingRegistry.instance().renderInventoryBlock(RenderBlocks.getInstance(), RegisteredBlocks.blockRemoteJar, 0, RegisteredBlocks.blockRemoteJar.getRenderType());
    GL11.glPopMatrix();
}
项目:MC-MineAPI.Java    文件:RendererTemplate.java   
@Override
public int getRenderId()
{
    // Returns our unique rendering ID for this specific tile entity.
    if (currentRenderProduct == null)
    {
        // Assign temporary render ID until we get this sorted out.
        if (currentRenderID == - 1)
        {
            currentRenderID = RenderingRegistry.getNextAvailableRenderId();
        }
    }

    // If render ID is set to anything other than default then return that.
    if (currentRenderID != - 1)
    {
        return currentRenderID;
    }

    // Default response is to return negative one to stop rendering.
    return currentRenderID;
}
项目: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());
}
项目:4Space-1.7    文件:SmartRenderContext.java   
public static void registerRenderers(Class<?> type)
{
    Render render;
    try
    {
        render = (Render)type.newInstance();
    }
    catch (Exception e)
    {
        return;
    }

    RenderingRegistry.registerEntityRenderingHandler(EntityPlayerSP.class, render);
    RenderingRegistry.registerEntityRenderingHandler(EntityOtherPlayerMP.class, render);
    render.setRenderManager(RenderManager.instance);
}
项目:ore-cattle    文件:ClientProxy.java   
@Override
public void registerRenders() {
    //REGISTER RENDERER
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowDiamond.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Diamond"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowCarbonite.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Carbonite"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowEmerald.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Emerald"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowEmpowered.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Empowered"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowGoldium.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Goldium"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowIron.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Iron"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowLazuli.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Lazuli"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsCowQuartzite.class, new OCMobsRenderer(new ModelCow(), 0.4F, "Cow_Quartzite"));

            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigDiamond.class, new OCMobsRenderer(new ModelPig(), 0.4F,"Pig_Diamond"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigCarbonite.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Carbonite"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigEmerald.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Emerald"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigEmpowered.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Empowered"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigGoldium.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Goldium"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigIron.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Iron"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigLazuli.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Lazuli"));
            RenderingRegistry.registerEntityRenderingHandler(OCMobsPigQuartzite.class, new OCMobsRenderer(new ModelPig(), 0.4F, "Pig_Quartzite"));
}
项目:TheStuffMod    文件:ClientProxy.java   
@Override
public void registerRenderers() {
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPipe.class, new TileEntityRenderPipe());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCable.class, new TileEntityRenderCable());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShell.class, new TileEntityRenderShell());

    MinecraftForgeClient.registerItemRenderer(ModArmour.shell, new CustomItemRenderer(new TileEntityRenderShell(), new TileEntityShell()));

    RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(new ModelZombie(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityPirate.class, new RenderPirate(new ModelPirate(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntitySenthant.class, new RenderSenthant(new ModelSenthant(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityBear.class, new RenderBear(new ModelBear(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityPanda.class, new RenderPanda(new ModelBear(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityGrawquat.class, new RenderGrawquat(new ModelGrawquat(), 0));;
    RenderingRegistry.registerEntityRenderingHandler(EntityLyekhwrone.class, new RenderLyekhwrone(new ModelLyekhwrone(), 0));;

    RenderingRegistry.registerEntityRenderingHandler(EntityLyekstone.class, new RenderSnowball(ModItems.lyekstone));

    VillagerRegistry.instance().registerVillagerSkin(56329, new ResourceLocation(Reference.MOD_ID, "textures/entity/villager.png"));
}
项目:PixelUtilities    文件:ClientProxy.java   
@Override
public void registerRenderThings() {
    ClientRegistry.bindTileEntitySpecialRenderer(BlockEntity.class, new BlockRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TreeEntity.class, new TreeRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(BolderEntity.class, new BolderRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(BoxEntity.class, new BoxRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(ClothedTableEntity.class, new ClothedTableRenderer());
    if (Basemod.pixelmonPresent)
        ClientRegistry.bindTileEntitySpecialRenderer(PokeballEntity.class, new PokeballRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(RedCusionChairEntity.class, new RedCusionChairRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TrashcanEntity.class, new TrashcanRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(YellowCusionChairEntity.class, new YellowCusionChairRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TotodilePokedollEntity.class, new TotodilePokedollRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(AronPokedollEntity.class, new AronPokedollRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(BisharpPokedollEntity.class, new BisharpPokedollRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(PokeballStatueTileEntity.class, new PokeballStatueTileEntityRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRadio.class, new RadioBlockRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(GymSignEntity.class, new GymSignRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TVEntity.class, new TVRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(BlueRugEntity.class, new BlueRugRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(RedRugEntity.class, new RedRugRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(GreenRugEntity.class, new GreenRugRenderer());

    RenderingRegistry.registerEntityRenderingHandler(SeatEntity.class, new InvisibleRenderer());
    RenderingRegistry.registerBlockHandler(500, new ConveyorRenderer());
}
项目:SciAPI    文件:HeatClientProxy.java   
public void onLoad() {
    super.onLoad();

    McInvItemRegistry.registerInvManager(McBagInvManager.getInstance(Side.CLIENT), Side.CLIENT);

    MinecraftForgeClient.registerItemRenderer(HItems.cookprogress, new ProgressRenderer(true, false, McInvDirection.UP, 1, 1, 14, 14));
    MinecraftForgeClient.registerItemRenderer(HItems.fuelprogress, new ProgressRenderer(true, false, McInvDirection.UP, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.fluidprogress, new ProgressRenderer(true, true, McInvDirection.RIGHT, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.boxlava, new ProgressRenderer(false, false, McInvDirection.UP, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.liqtank, new ProgressRenderer(true, true, McInvDirection.UP, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.casting, new ProgressRenderer(true, true, McInvDirection.UP, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.filler, new ProgressRenderer(true, true, McInvDirection.RIGHT, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.drain, new ProgressRenderer(true, true, McInvDirection.RIGHT, 0, 0, 16, 16));
    MinecraftForgeClient.registerItemRenderer(HItems.itemmover, new ProgressRenderer(true, true, McInvDirection.RIGHT, 0, 0, 16, 16));


    cauldronid = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(cauldronid, new CauldronRenderer());

    MinecraftForge.EVENT_BUS.register(new HeatEventHandler());
}
项目: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());
}
项目:Steam-and-Steel    文件:ClientProxy.java   
@Override
    public void registerRenders() {
        int tank_id = RenderingRegistry.getNextAvailableRenderId();
        GlassFluidTank.renderID = tank_id;
        RenderingRegistry.registerBlockHandler(tank_id, new RenderGlassTank(tank_id));
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(GrandFluidTank.renderblocks), new RenderItemBlockGlassTank());


}
项目:ExtraAcC    文件:MyRegistry.java   
@SideOnly(Side.CLIENT)
public void registerRenderers() {
    //System.out.println("Register my render");
    RenderingRegistry.registerEntityRenderingHandler(EntityBasicAirGun.class, new RenderAirGun());
    RenderingRegistry.registerEntityRenderingHandler(EntityWindBlade.class, new RenderWindBlade());
    RenderingRegistry.registerEntityRenderingHandler(EntityExplosiveAirGun.class, new RenderAirGun());
    RenderingRegistry.registerEntityRenderingHandler(EntityUpdraft.class, new RenderUpdraft()); 
    RenderingRegistry.registerEntityRenderingHandler(EntitySand.class, new RenderSand());
    RenderingRegistry.registerEntityRenderingHandler(EntityTurbulentStorm.class, new RenderNull());

}
项目:connor41-etfuturum2    文件:ClientProxy.java   
@SuppressWarnings("unchecked")
private void registerEntityRenderers() {
    if (EtFuturum.enableArmourStand)
        RenderingRegistry.registerEntityRenderingHandler(EntityArmourStand.class, new ArmourStandRenderer());
    if (EtFuturum.enableEndermite)
        RenderingRegistry.registerEntityRenderingHandler(EntityEndermite.class, new EndermiteRenderer());
    if (EtFuturum.enableRabbit)
        RenderingRegistry.registerEntityRenderingHandler(EntityRabbit.class, new RabbitRenderer());
    if (EtFuturum.enableLingeringPotions) {
        RenderingRegistry.registerEntityRenderingHandler(EntityLingeringPotion.class, new LingeringPotionRenderer());
        RenderingRegistry.registerEntityRenderingHandler(EntityLingeringEffect.class, new LingeringEffectRenderer());
    }
    if (EtFuturum.enableVillagerZombies)
        RenderingRegistry.registerEntityRenderingHandler(EntityZombieVillager.class, new VillagerZombieRenderer());
    if (EtFuturum.enableDragonRespawn)
        RenderingRegistry.registerEntityRenderingHandler(EntityPlacedEndCrystal.class, new PlacedEndCrystalRenderer());
    if (EtFuturum.enablePlayerSkinOverlay) {
        TextureManager texManager = Minecraft.getMinecraft().renderEngine;
        File fileAssets = ReflectionHelper.getPrivateValue(Minecraft.class, Minecraft.getMinecraft(), "fileAssets", "field_110446_Y", " field_110607_c");
        File skinFolder = new File(fileAssets, "skins");
        MinecraftSessionService sessionService = Minecraft.getMinecraft().func_152347_ac();
        ReflectionHelper.setPrivateValue(Minecraft.class, Minecraft.getMinecraft(), new NewSkinManager(Minecraft.getMinecraft().func_152342_ad(), texManager, skinFolder, sessionService), "field_152350_aA");

        RenderManager.instance.entityRenderMap.put(EntityPlayer.class, new NewRenderPlayer());
    }
    if (EtFuturum.enableShearableGolems)
        RenderingRegistry.registerEntityRenderingHandler(EntityNewSnowGolem.class, new NewSnowGolemRenderer());
}
项目:TFCPrimitiveTech    文件:ModClientProxy.java   
@Override
@SideOnly(Side.CLIENT)
public void registerRenderInformation()
{
       if (TFCPrimitiveTech.instance.isPaperEnabled)
        RenderingRegistry.registerBlockHandler(ModBlocks.WoodenPressRenderId = RenderingRegistry.getNextAvailableRenderId(), new RenderWoodenPress());
       if (TFCPrimitiveTech.instance.isSlingshotEnabled)
       {
        RenderingRegistry.registerEntityRenderingHandler(EntityProjectileSharpStone.class, new RenderSharpStone());
        RenderingRegistry.registerEntityRenderingHandler(EntityProjectileHardStone.class, new RenderHardStone());       
        RenderingRegistry.registerEntityRenderingHandler(EntityProjectileSoftStone.class, new RenderSoftStone());
       }

}
项目:MineMania-Rebirth-1.7.10    文件:ClientProxy.java   
public void registerRenderThings(){

        RenderingRegistry.registerEntityRenderingHandler(EntityLegoguy110Mob.class, new RenderLegoguy110Mob(new Legoguy110_Dev(), 0));
        RenderingRegistry.registerEntityRenderingHandler(EntityComixsMob.class, new RenderComixsMob(new ComixsYT_Dev(), 0));
        RenderingRegistry.registerEntityRenderingHandler(KillerMoo.class, new RenderKillerCow(new ModelCow(), 0));
        RenderingRegistry.registerEntityRenderingHandler(EntityPanguin.class, new RenderPanguin(new Penguin(), 0));
    }
项目:4Space-5    文件:MarsModuleClient.java   
@Override
public void init(FMLInitializationEvent event)
{
    FMLCommonHandler.instance().bus().register(new TickHandlerClient());
    MarsModuleClient.vineRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererCavernousVines(MarsModuleClient.vineRenderID));
    MarsModuleClient.eggRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererEgg(MarsModuleClient.eggRenderID));
    MarsModuleClient.treasureRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererTier2TreasureChest(MarsModuleClient.treasureRenderID));
    MarsModuleClient.machineRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererMachine(MarsModuleClient.machineRenderID));
    MarsModuleClient.renderIdHydrogenPipe = RenderingRegistry.getNextAvailableRenderId();        
    RenderingRegistry.registerBlockHandler(new BlockRendererHydrogenPipe(MarsModuleClient.renderIdHydrogenPipe));
}
项目:4Space-5    文件:MarsModuleClient.java   
@Override
    public void postInit(FMLPostInitializationEvent event)
    {
        IModelCustom chamberModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/chamber.obj"));
        IModelCustom cargoRocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/cargoRocket.obj"));

        // Tile Entity Renderers
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestMars.class, new TileEntityTreasureChestRenderer());
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCryogenicChamber.class, new TileEntityCryogenicChamberRenderer(chamberModel));
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTerraformer.class, new TileEntityBubbleProviderRenderer(0.25F, 1.0F, 0.25F));

        // Entities
        RenderingRegistry.registerEntityRenderingHandler(EntitySludgeling.class, new RenderSludgeling());
        RenderingRegistry.registerEntityRenderingHandler(EntitySlimeling.class, new RenderSlimeling());
        RenderingRegistry.registerEntityRenderingHandler(EntityCreeperBoss.class, new RenderCreeperBoss());
        RenderingRegistry.registerEntityRenderingHandler(EntityTier2Rocket.class, new RenderTier1Rocket(new ModelTier2Rocket(), MarsModule.ASSET_PREFIX, "rocketT2"));
//        RenderingRegistry.registerEntityRenderingHandler(EntityTerraformBubble.class, new RenderBubble(0.25F, 1.0F, 0.25F));
        RenderingRegistry.registerEntityRenderingHandler(EntityProjectileTNT.class, new RenderProjectileTNT());
        RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons());
        RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons());
        RenderingRegistry.registerEntityRenderingHandler(EntityCargoRocket.class, new RenderCargoRocket(cargoRocketModel));

        // Add Armor Renderer Prefix
        RenderingRegistry.addNewArmourRendererPrefix("desh");

        // Item Renderers
        MinecraftForgeClient.registerItemRenderer(MarsItems.spaceship, new ItemRendererTier2Rocket(cargoRocketModel));
        MinecraftForgeClient.registerItemRenderer(MarsItems.key, new ItemRendererKey(new ResourceLocation(MarsModule.ASSET_PREFIX, "textures/model/treasure.png")));
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MarsBlocks.machine), new ItemRendererMachine(chamberModel));
    }
项目:4Space-5    文件:AsteroidsModuleClient.java   
@Override
public void init(FMLInitializationEvent event)
{
    AsteroidsModuleClient.walkwayRenderID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererWalkway(AsteroidsModuleClient.walkwayRenderID));
    AsteroidsModuleClient.treasureChestID = RenderingRegistry.getNextAvailableRenderId();
    RenderingRegistry.registerBlockHandler(new BlockRendererTier3TreasureChest(AsteroidsModuleClient.treasureChestID));
    AsteroidsEventHandlerClient clientEventHandler = new AsteroidsEventHandlerClient();
    FMLCommonHandler.instance().bus().register(clientEventHandler);
    MinecraftForge.EVENT_BUS.register(clientEventHandler);
    FluidTexturesGC.init();
}
项目:4Space-5    文件:AsteroidsModuleClient.java   
@Override
public void postInit(FMLPostInitializationEvent event)
{
    RenderingRegistry.registerEntityRenderingHandler(EntitySmallAsteroid.class, new RenderSmallAsteroid());
    RenderingRegistry.registerEntityRenderingHandler(EntityGrapple.class, new RenderGrapple());
    IModelCustom podModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/pod.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityEntryPod.class, new RenderEntryPod(podModel));
    IModelCustom rocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/tier3rocket.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityTier3Rocket.class, new RenderTier3Rocket(rocketModel, AsteroidsModule.ASSET_PREFIX, "tier3rocket"));
    RenderingRegistry.registerEntityRenderingHandler(EntityAstroMiner.class, new RenderAstroMiner());
    IModelCustom grappleModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/grapple.obj"));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.grapple, new ItemRendererGrappleHook(grappleModel));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReceiver), new ItemRendererBeamReceiver());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReflector), new ItemRendererBeamReflector());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.tier3Rocket, new ItemRendererTier3Rocket(rocketModel));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.astroMiner, new ItemRendererAstroMiner());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.thermalPadding, new ItemRendererThermalArmor());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.shortRangeTelepad), new ItemRendererShortRangeTelepad());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.heavyNoseCone, new ItemRendererHeavyNoseCone());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkway), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayOxygenPipe), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayWire), new ItemRendererWalkway());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReflector.class, new TileEntityBeamReflectorRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReceiver.class, new TileEntityBeamReceiverRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMinerBase.class, new TileEntityMinerBaseRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShortRangeTelepad.class, new TileEntityShortRangeTelepadRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestAsteroids.class, new TileEntityTreasureChestRenderer());

    if (Loader.isModLoaded("craftguide"))
        CraftGuideIntegration.register();
}
项目:4Space-5    文件:ClientProxyCore.java   
@Override
public void preInit(FMLPreInitializationEvent event)
{
    ClientProxyCore.scaleup.put(ClientProxyCore.numbers, 0, 16);

    ClientProxyCore.renderIndexSensorGlasses = RenderingRegistry.addNewArmourRendererPrefix("sensor");
    ClientProxyCore.renderIndexHeavyArmor = RenderingRegistry.addNewArmourRendererPrefix("titanium");

    if (Loader.isModLoaded("PlayerAPI"))
    {
        ClientPlayerAPI.register(Constants.MOD_ID_CORE, GCPlayerBaseSP.class);
    }
}
项目:4Space-5    文件:ClientProxyCore.java   
public static void registerEntityRenderers()
    {
        RenderingRegistry.registerEntityRenderingHandler(EntityTier1Rocket.class, new RenderTier1Rocket(new ModelRocketTier1(), GalacticraftCore.ASSET_PREFIX, "rocketT1"));
        RenderingRegistry.registerEntityRenderingHandler(EntityEvolvedSpider.class, new RenderEvolvedSpider());
        RenderingRegistry.registerEntityRenderingHandler(EntityEvolvedZombie.class, new RenderEvolvedZombie());
        RenderingRegistry.registerEntityRenderingHandler(EntityEvolvedCreeper.class, new RenderEvolvedCreeper());
        RenderingRegistry.registerEntityRenderingHandler(EntityEvolvedSkeleton.class, new RenderEvolvedSkeleton());
        RenderingRegistry.registerEntityRenderingHandler(EntitySkeletonBoss.class, new RenderEvolvedSkeletonBoss());
        RenderingRegistry.registerEntityRenderingHandler(EntityMeteor.class, new RenderMeteor());
        RenderingRegistry.registerEntityRenderingHandler(EntityBuggy.class, new RenderBuggy());
        RenderingRegistry.registerEntityRenderingHandler(EntityMeteorChunk.class, new RenderMeteorChunk());
        RenderingRegistry.registerEntityRenderingHandler(EntityFlag.class, new RenderFlag());
        RenderingRegistry.registerEntityRenderingHandler(EntityParachest.class, new RenderParaChest());
        RenderingRegistry.registerEntityRenderingHandler(EntityAlienVillager.class, new RenderAlienVillager());
//        RenderingRegistry.registerEntityRenderingHandler(EntityBubble.class, new RenderBubble(0.25F, 0.25F, 1.0F));
        RenderingRegistry.registerEntityRenderingHandler(EntityLander.class, new RenderLander());
        RenderingRegistry.registerEntityRenderingHandler(EntityCelestialFake.class, new RenderEntityFake());

        if (Loader.isModLoaded("RenderPlayerAPI"))
        {
            ModelPlayerAPI.register(Constants.MOD_ID_CORE, ModelPlayerBaseGC.class);
            RenderPlayerAPI.register(Constants.MOD_ID_CORE, RenderPlayerBaseGC.class);
        }
        else
        {
            RenderingRegistry.registerEntityRenderingHandler(EntityPlayerSP.class, new RenderPlayerGC());
            RenderingRegistry.registerEntityRenderingHandler(EntityOtherPlayerMP.class, new RenderPlayerGC());
        }
    }
项目:4Space-5    文件:FeatureHack.java   
@SideOnly(Side.CLIENT)
public static void enableRenderHook()
{
    if(renderHookEnabled)
        return;

    renderHookEnabled = true;
    RenderingRegistry.registerEntityRenderingHandler(EntityUpdateHook.class, new RenderNull());
}
项目:FairyFactions    文件:ClientProxy.java   
private void initRenderer() {
    // map.put(FRY_EntityFairy.class, new FRY_RenderFairy(new FRY_ModelFairy(), 0.25F));
    // map.put(FRY_EntityFishHook.class, new FRY_RenderFish());

    RenderingRegistry.registerEntityRenderingHandler(EntityFairy.class, 
            new RenderFairy(new ModelFairy(), 0.25f));
    RenderingRegistry.registerEntityRenderingHandler(FairyEntityFishHook.class, new RenderFish());
}
项目:PopularMMOS-EpicProportions-Mod    文件:ClientProxy.java   
@Override
public void registerRenderThings()
{
RenderingRegistry.registerEntityRenderingHandler(EntityNinjaStar.class, new RenderSnowball(ItemLoader.ItemNinjaStar));
RenderingRegistry.registerEntityRenderingHandler(EntityLuckyEgg.class, new RenderSnowball(ItemLoader.ItemLuckyEgg));
RenderingRegistry.registerEntityRenderingHandler(EntilyPatArrow.class, new RenderPatArrow());
RenderingRegistry.registerEntityRenderingHandler(EntilyJenArrow.class, new RenderJenArrow());
}
项目:OpenTechnology    文件:ClientProxy.java   
@Override
public void preInit(FMLPreInitializationEvent e) {
    super.preInit(e);

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRadar.class, new RadarRender());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLDA.class, new TileAntennaRender());

    RenderingRegistry.registerBlockHandler(radarRenderingId, new RenderingRadarHandler());
    RenderingRegistry.registerBlockHandler(LDARenderingId, new RenderingAntennaHandler());
    RenderingRegistry.registerBlockHandler(CableDecorRenderingId, new RenderCableDecorHandler());
    RenderingRegistry.registerBlockHandler(PIMRenderingId, new BlockPIMRender());

    EnumHelper.addRarity("unreal", EnumChatFormatting.OBFUSCATED, "unreal");
}
项目:TFCTech    文件:ModClientProxy.java   
@Override
@SideOnly(Side.CLIENT)
public void registerRenderInformation() {
    RenderingRegistry.registerBlockHandler(ModBlocks.oreRenderId = RenderingRegistry.getNextAvailableRenderId(), new RenderModOre());
    RenderingRegistry.registerBlockHandler(ModBlocks.latexExtractorRenderId = RenderingRegistry.getNextAvailableRenderId(), new RenderLatexExtractor());
    RenderingRegistry.registerBlockHandler(ModBlocks.wireDrawBenchRenderId = RenderingRegistry.getNextAvailableRenderId(), new RenderWireDrawBench());
    RenderingRegistry.registerBlockHandler(ModBlocks.inductionSmelterRenderId = RenderingRegistry.getNextAvailableRenderId(), new RenderInductionSmelter());
}