当前位置: 首页>>代码示例>>Java>>正文


Java ClientRegistry类代码示例

本文整理汇总了Java中cpw.mods.fml.client.registry.ClientRegistry的典型用法代码示例。如果您正苦于以下问题:Java ClientRegistry类的具体用法?Java ClientRegistry怎么用?Java ClientRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ClientRegistry类属于cpw.mods.fml.client.registry包,在下文中一共展示了ClientRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@Override
public void init(FMLInitializationEvent e) {
	super.init(e);
	Register.registerGlobalEntityID(EntityLaser.class, "laser");

	Register.registerEntityRenderingHandler(EntityLaser.class, new RenderLaser());

	Register.registerItemRenderer(RorysMod.items.rifle1, new RenderRifle());
	Register.registerItemRenderer(RorysMod.items.rifle2, new RenderRifle());
	Register.registerItemRenderer(RorysMod.items.rifle3, new RenderRifle());
	Register.registerItemRenderer(RorysMod.items.rifle4, new RenderRifle());
	Register.registerItemRenderer(RorysMod.items.rifle5, new RenderRifle());

	TileEntitySpecialRenderer render = new RenderRifleTable();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRifleTable.class, render);
	Register.registerItemRenderer(Item.getItemFromBlock(RorysMod.blocks.upgradeTable), new ItemRender(render, new TileEntityRifleTable()));

	render = new RenderPoweredChest();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPoweredChest.class, render);

	FMLInterModComms.sendMessage("Waila", "register", WailaConfig.class.getName() + ".callbackRegister");
}
 
开发者ID:roryclaasen,项目名称:RorysMod,代码行数:23,代码来源:ClientProxy.java

示例2: registerBlockRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
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());
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:26,代码来源:ClientProxy.java

示例3: load

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
public static void load()
{
	KEY_GENERATE = new KeyBinding("key.GENERATE", Keyboard.KEY_O, "key.categories.magiccrusade");
    ClientRegistry.registerKeyBinding(KEY_GENERATE);
    
    KEY_STATS = new KeyBinding("key.stats", Keyboard.KEY_P, "key.categories.magiccrusade");
    ClientRegistry.registerKeyBinding(KEY_STATS);
  
	KEY_GROUP = new KeyBinding("key.group", Keyboard.KEY_G, "key.categories.magiccrusade");
    ClientRegistry.registerKeyBinding(KEY_GROUP);
    
    KEY_SELECT_CLASSE = new KeyBinding("key.select_classe", Keyboard.KEY_I, "key.categories.magiccrusade");
    ClientRegistry.registerKeyBinding(KEY_SELECT_CLASSE);
    
    KEY_SELECT_RACE = new KeyBinding("key.select_race", Keyboard.KEY_U, "key.categories.magiccrusade");
    ClientRegistry.registerKeyBinding( KEY_SELECT_RACE);
   
    KEY_SPELLS = new KeyBinding[10];
    for (int i = 0; i < 10; i++)
    {
    	KEY_SPELLS[i] = new KeyBinding("key.spells_" + i, Keyboard.KEY_NUMPAD1 + i, "key.categories.magiccrusade");
        ClientRegistry.registerKeyBinding(KEY_SPELLS[i]);
    }
}
 
开发者ID:GhostMonk3408,项目名称:MidgarCrusade,代码行数:25,代码来源:KeyBindings.java

示例4: init

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@Override
public void init(final @Nonnull FMLInitializationEvent event) {
	super.init(event);

	// Replace Sign Renderer
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySign.class, Client.renderer);
	MinecraftForgeClient.registerItemRenderer(Items.sign, new CustomItemSignRenderer());

	// Event Register
	Client.handler.init();
	ClientCommandHandler.instance.registerCommand(Client.rootCommand);
}
 
开发者ID:Team-Fruit,项目名称:SignPicture,代码行数:13,代码来源:ClientProxy.java

示例5: initRenders

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@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"))
		{
			
		}
	}
 
开发者ID:gigabit101,项目名称:PrimitiveCraft,代码行数:17,代码来源:ClientProxy.java

示例6: registerTileEntitiesRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@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()
    );
}
 
开发者ID:UntouchedWagons,项目名称:PowerLines,代码行数:21,代码来源:ClientProxy.java

示例7: registerRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
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)));
}
 
开发者ID:samvbeckmann,项目名称:network,代码行数:21,代码来源:ClientProxy.java

示例8: registerRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
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());
}
 
开发者ID:Dennisbonke,项目名称:JABBA,代码行数:17,代码来源:ClientProxy.java

示例9: initRenderingAndTextures

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@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());
}
 
开发者ID:Tamfoolery,项目名称:Woodcraft,代码行数:18,代码来源:ClientProxy.java

示例10: init

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@Override
public void init() {
    super.init();
    String[] types = new String[]{"Helmet", "Chestplate", "Leggings",
            "Boots"};
    for (int i = 0; i < types.length; i++)
        LanguageRegistry.instance().addStringLocalization(
                "item.armorEnder" + i + ".name",
                String.format("Ender-Infused %s", types[i]));

    FMLCommonHandler.instance().bus().register(this);
    MinecraftForge.EVENT_BUS.register(this);
    for (KeyBinding binding : allBindings)
        ClientRegistry.registerKeyBinding(binding);
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHMS.class,
            new HMSTESR());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(
            EACommonProxy.blockHMS), new ItemRendererHMS());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRockExterminator.class,
            new RockExterminatorTESR());
    //MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(
    //        EACommonProxy.blockRockExterminator), new ItemRendererRockExterminator());
    MinecraftForgeClient.registerItemRenderer(EACommonProxy.itemWarpGem, new ItemRendererWarpGem());

}
 
开发者ID:mak326428,项目名称:EnderAmmunition,代码行数:26,代码来源:EAClientProxy.java

示例11: doTheRenderThing

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
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();
}
 
开发者ID:SpitefulFox,项目名称:RidiculousWorld,代码行数:27,代码来源:ClientProxy.java

示例12: registerRendering

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@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);
}
 
开发者ID:XeliteXirish,项目名称:Quantum-Energistics-2,代码行数:17,代码来源:ClientProxy.java

示例13: registerTileEntities

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
public void registerTileEntities()
{
	EntitylistMF.init();
	
	ClientRegistry.registerTileEntity(TileEntityLantern.class, "MFLantern",new TileEntityLanternRenderer());
	ClientRegistry.registerTileEntity(TileEntityBellows.class, "Bellows", new TileEntityBellowsRenderer());
	ClientRegistry.registerTileEntity(TileEntityDogBowl.class, "Dogbowl", new TileEntityDogbowlRenderer());
	ClientRegistry.registerTileEntity(TileEntityAnvil.class, "Anvil",new TileEntityAnvilRenderer());
	ClientRegistry.registerTileEntity(TileEntitySmelter.class, "Bloom",new TileEntitySmelterRenderer());
	ClientRegistry.registerTileEntity(TileEntityForge.class, "Forge",new TileEntityForgeRenderer());
	ClientRegistry.registerTileEntity(TileEntityTanningRack.class, "Tanner",new TileEntityTanningRackRenderer());
	ClientRegistry.registerTileEntity(TileEntityWeaponRack.class, "Rack",new TileEntityWeaponRackRenderer());
	GameRegistry.registerTileEntity(TileEntityBFurnace.class, "Blastfurnace");
	ClientRegistry.registerTileEntity(TileEntityTripHammer.class, "MFTripHammer", new TileEntityTripHammerRenderer());
	ClientRegistry.registerTileEntity(TileEntityRoast.class, "MFSpitRoast",new TileEntityRoastRenderer());
	ClientRegistry.registerTileEntity(TileEntityFurnaceMF.class, "MFFurnace", new TileEntityFurnaceRendererMF());
	ClientRegistry.registerTileEntity(TileEntityPrepBlock.class, "MFFoodPrep", new TileEntityFoodPrepRenderer());
	ClientRegistry.registerTileEntity(TileEntityTailor.class, "MFTailor", new TileEntityTailorRenderer());
	ClientRegistry.registerTileEntity(TileEntitySpinningWheel.class, "MFSpinningWheel", new TileEntitySpinningWheelRenderer());
	ClientRegistry.registerTileEntity(TileEntityFirepit.class, "firepitMF", new TileEntityFirepitRenderer());
	ClientRegistry.registerTileEntity(TileEntityOven.class, "ovenMF", new TileEntityOvenRenderer());
	GameRegistry.registerTileEntity(TileEntityRoad.class, "roadMF");
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:24,代码来源:MFProxy_client.java

示例14: registerTileEntities

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
@Override
public void registerTileEntities() {
	TileEntityIC2ThermoRenderer renderThermalMonitor = new TileEntityIC2ThermoRenderer();
	TileEntityRemoteThermoRenderer renderRemoteThermo = new TileEntityRemoteThermoRenderer();
	TileEntityInfoPanelRenderer renderInfoPanel = new TileEntityInfoPanelRenderer();

	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityThermo.class, "IC2Thermo", renderThermalMonitor);
	GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm.class, "IC2HowlerAlarm");
	GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityIndustrialAlarm.class, "IC2IndustrialAlarm");
	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRemoteThermo.class, "IC2RemoteThermo", renderRemoteThermo);
	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.class, "IC2NCInfoPanel", renderInfoPanel);
	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanelExtender.class, "IC2NCInfoPanelExtender", renderInfoPanel);
	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanel.class, "IC2NCAdvancedInfoPanel", renderInfoPanel);
	ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanelExtender.class, "IC2NCAdvancedInfoPanelExtender", renderInfoPanel);
	GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityEnergyCounter.class, "IC2NCEnergyCounter");
	GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter.class, "IC2NCAverageCounter");
	GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRangeTrigger.class, "IC2NCRangeTrigger");
	int modelId = RenderingRegistry.getNextAvailableRenderId();
	IC2NuclearControl.instance.modelId = modelId;
	RenderingRegistry.registerBlockHandler(new MainBlockRenderer(modelId));
}
 
开发者ID:xbony2,项目名称:Nuclear-Control,代码行数:22,代码来源:ClientProxy.java

示例15: registerRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入依赖的package包/类
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());
}
 
开发者ID:Beamfield,项目名称:TectoCraft,代码行数:25,代码来源:ClientProxy.java


注:本文中的cpw.mods.fml.client.registry.ClientRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。