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


Java ClientRegistry.bindTileEntitySpecialRenderer方法代码示例

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


在下文中一共展示了ClientRegistry.bindTileEntitySpecialRenderer方法的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: 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

示例4: 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

示例5: 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

示例6: 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

示例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: init

import cpw.mods.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void init(Object basemod) {

	super.init(basemod);

	byBlockModelId = Proxies.render.getNextAvailableRenderId();
	blockModelIdEngine = Proxies.render.getNextAvailableRenderId();

	preloadTexture(Defaults.TEXTURE_BLOCKS);
	preloadTexture(Defaults.TEXTURE_ITEMS);
	preloadTexture(Defaults.TEXTURE_CRATED);
	preloadTexture(Defaults.TEXTURE_BEES);
	preloadTexture(Defaults.TEXTURE_ARBORICULTURE);
	preloadTexture(Defaults.TEXTURE_FARM);
	preloadTexture(Defaults.TEXTURE_GERMLINGS);
	preloadTexture(Defaults.TEXTURE_ERRORS);
	preloadTexture(Defaults.TEXTURE_TRIGGERS);
	preloadTexture(Defaults.TEXTURE_PATH_BLOCKS + "/pipes.png");

	ClientRegistry.bindTileEntitySpecialRenderer(TileMachine.class, new RenderForestryTile());

	RenderingRegistry.registerBlockHandler(new BlockRenderingHandler());
}
 
开发者ID:ForestryMC,项目名称:ForestryLegacy,代码行数:24,代码来源:ForestryClient.java

示例9: registerRenderers

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

示例10: postInit

import cpw.mods.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@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));
    }
 
开发者ID:4Space,项目名称:4Space-5,代码行数:31,代码来源:MarsModuleClient.java

示例11: postInit

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

示例12: registerTileEntityRenderers

import cpw.mods.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
public static void registerTileEntityRenderers()
{
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAluminumWire.class, new TileEntityAluminumWireRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChest.class, new TileEntityTreasureChestRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityParaChest.class, new TileEntityParachestRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNasaWorkbench.class, new TileEntityNasaWorkbenchRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySolar.class, new TileEntitySolarPanelRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOxygenDistributor.class, new TileEntityBubbleProviderRenderer(0.25F, 0.25F, 1.0F));
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDish.class, new TileEntityDishRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityThruster.class, new TileEntityThrusterRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityArclamp.class, new TileEntityArclampRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityScreen.class, new TileEntityScreenRenderer());
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:14,代码来源:ClientProxyCore.java

示例13: preInit

import cpw.mods.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit(FMLPreInitializationEvent event)
{
    super.preInit(event);
    RFUtilities.RFU_NET_WRAPPER.registerMessage(PacketGetThroughput.HandlerPacketGetThroughput.class, PacketGetThroughput.class, 1, Side.CLIENT);
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityInvisibleTesseract.class, new RenderInvisTesseract());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCapacitor.class, new RenderCapacitor());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySwitch.class, new RenderSwitch());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResistor.class, new RenderResistor());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDiode.class, new RenderDiode());
    //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRFMeter.class, new RenderRFMeter());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransistor.class, new RenderTransistor());
}
 
开发者ID:XFactHD,项目名称:RFUtilities,代码行数:14,代码来源:ClientProxy.java

示例14: preInit

import cpw.mods.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit()
{
	super.preInit();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompressedChest.class, RendererAvaritiaddonsChest.instance);
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockCompressedChest.instance), new ItemRendererCompressedChest());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityInfinityChest.class, RendererAvaritiaddonsChest.instance);
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockInfinityChest.instance), new ItemRendererInfinityChest());
	WanionLib.getClientTickHandler().registerAnimation(ClientConstants.INFINITY_CHEST_ANIMATION);
}
 
开发者ID:WanionCane,项目名称:Avaritiaddons,代码行数:11,代码来源:ClientProxy.java

示例15: preInit

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


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