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


Java RenderingRegistry.getNextAvailableRenderId方法代码示例

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


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

示例1: init

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

示例2: init

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

示例3: registerBlockHandlers

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

示例4: initRenders

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的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: initRenderingAndTextures

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的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

示例6: Init

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

示例7: registerRender

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

示例8: FWBlock

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

示例9: registerRenderers

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的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

示例10: load

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

示例11: doTheRenderThing

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的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: registerRenderers

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

示例13: registerRenders

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@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());


}
 
开发者ID:grand-mine-inc,项目名称:Steam-and-Steel,代码行数:10,代码来源:ClientProxy.java

示例14: registerRenderInformation

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerRenderInformation()
{
	TFPBlocks.brickOvenRenderID = RenderingRegistry.getNextAvailableRenderId();
			
	RenderingRegistry.registerBlockHandler(TFPBlocks.brickOvenRenderID, new TFPBrickOvenRenderer());
	MinecraftForgeClient.registerItemRenderer(TFPItems.TFPNecronomicon, new TFPNecronomiconRenderer());
	
	ClientRegistry.bindTileEntitySpecialRenderer(TEAltar.class, new TileEntityAltarRenderer());
	
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TFPBlocks.tfpAltar), new TileEntityAltarRenderer());
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TFPBlocks.tfpAltarBlock), new TileEntityAltarRenderer());
}
 
开发者ID:StrayWolfe,项目名称:TerrafirmaPunk-Tweaks,代码行数:15,代码来源:ClientProxy.java

示例15: registerRenderers

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public void registerRenderers()
{
	super.registerRenderers();
	
	RenderIdEffectJar = RenderingRegistry.getNextAvailableRenderId();
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Config.effectJar), RendererEffectJar.instance);
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEffectJar.class, RendererEffectJar.instance);
	
	RenderIdVisAuraProvider = RenderingRegistry.getNextAvailableRenderId();
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Config.visAuraProvider), RendererVisAuraProvider.instance);
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityVisAuraProvider.class, RendererVisAuraProvider.instance);
}
 
开发者ID:MagicBees,项目名称:MagicBees,代码行数:14,代码来源:ClientProxy.java


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