當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。