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


Java RenderingRegistry.addNewArmourRendererPrefix方法代码示例

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


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

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

示例2: postInit

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

示例3: preInit

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

示例4: registerRenderers

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public void registerRenderers() {
	RenderingRegistry.addNewArmourRendererPrefix("PigtiteArmor");
	
	/*RenderingRegistry.registerEntityRenderingHandler(GGPGnomorian.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "Gnomorian"));
	RenderingRegistry.registerEntityRenderingHandler(GGPBudder92.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "Budder92"));
	RenderingRegistry.registerEntityRenderingHandler(GGPdomonator12.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "domonator12"));
	RenderingRegistry.registerEntityRenderingHandler(GGPJo10Trot.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "Jo10Trot"));
	RenderingRegistry.registerEntityRenderingHandler(GGPMIXERRULES.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "MIXERRULES"));
	RenderingRegistry.registerEntityRenderingHandler(GGPMonkrules10.class, new GGPMobsRenderer(new ModelBiped(), 0.4F, "Monkrules10"));*/
}
 
开发者ID:mixerrules,项目名称:piggalot-mod,代码行数:12,代码来源:ClientProxy.java

示例5: preInit

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public void preInit(FMLPreInitializationEvent event) {
	ClientProxyVenus.renderIndexRubyArmor = RenderingRegistry.addNewArmourRendererPrefix("ruby");
	ClientProxyVenus.renderIndexSulfurArmor = RenderingRegistry.addNewArmourRendererPrefix("sulfur");
	ClientProxyVenus.renderIndexJetpack = RenderingRegistry.addNewArmourRendererPrefix("jetpack");

	super.preInit(event);
}
 
开发者ID:4Space,项目名称:4Space-1.7,代码行数:9,代码来源:ClientProxyVenus.java

示例6: addArmor

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
public int addArmor(String armor){
	return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
 
开发者ID:MAPReiff,项目名称:MineMania-Rebirth-1.7.10,代码行数:4,代码来源:ClientProxy.java

示例7: registerRenderer

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
private void registerRenderer() {
	this.renderIndex = RenderingRegistry.addNewArmourRendererPrefix(material.name());
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:5,代码来源:ItemSetArmour.java

示例8: load

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
public static void load()
{
	RenderingRegistry.addNewArmourRendererPrefix("5");
	RenderingRegistry.addNewArmourRendererPrefix("6");
	RenderingRegistry.addNewArmourRendererPrefix("7");
	RenderingRegistry.addNewArmourRendererPrefix("8");
	RenderingRegistry.addNewArmourRendererPrefix("9");
	RenderingRegistry.addNewArmourRendererPrefix("10");
	RenderingRegistry.addNewArmourRendererPrefix("11");
	RenderingRegistry.addNewArmourRendererPrefix("12");
	RenderingRegistry.addNewArmourRendererPrefix("13");
	RenderingRegistry.addNewArmourRendererPrefix("14");
	RenderingRegistry.addNewArmourRendererPrefix("15");
	RenderingRegistry.addNewArmourRendererPrefix("16");
	RenderingRegistry.addNewArmourRendererPrefix("17");
	RenderingRegistry.addNewArmourRendererPrefix("18");
	RenderingRegistry.addNewArmourRendererPrefix("19");
	RenderingRegistry.addNewArmourRendererPrefix("20");
	RenderingRegistry.addNewArmourRendererPrefix("21");

       RenderingRegistry.registerEntityRenderingHandler(EntityVillagerDim.class, new RenderVillagerDim());
       RenderingRegistry.registerEntityRenderingHandler(EntityGhastFrozen.class, new RenderGhastFrozen());
       RenderingRegistry.registerEntityRenderingHandler(EntitySlimeFrozen.class, new RenderSlimeFrozen(new ModelSlime(16), new ModelSlime(0), 0.25F));
       RenderingRegistry.registerEntityRenderingHandler(EntitySnowCube.class, new RenderSnowCube());
       RenderingRegistry.registerEntityRenderingHandler(EntityFrozenCube.class, new RenderFrozenCube());
       RenderingRegistry.registerEntityRenderingHandler(EntitySlave.class, new RenderSlave());
       RenderingRegistry.registerEntityRenderingHandler(EntityStymph.class, new RenderStymph(new ModelStymph(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityCentaure.class, new RenderCentaure(new ModelCentaure(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntitySummonZombie.class, new RenderSummonZombie());
       RenderingRegistry.registerEntityRenderingHandler(EntityBossOrc.class, new RenderBossOrc(new ModelRoiOrc(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityOrc.class, new RenderOrc(new ModelOrc(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityMageOrc.class, new RenderMageOrc(new ModelMageOrc(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityLutin.class, new RenderLutin(new ModelLutin(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityGobelin.class, new RenderGobelin(new ModelGobelin(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityArkavon.class, new RenderArkavon(new ModelArkavon(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityMonsterZombie.class, new RenderZombieMonster(new ModelZombieMonster(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityCrocotta.class, new RenderCrocotta(new ModelCrocotta(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityChevalier.class, new RenderChevalier(new ModelChevalier(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityLibellule.class, new RenderLibellule(new ModelLibellule(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityBelier.class, new RenderBelier(new ModelBelier(), 0.7F));
       RenderingRegistry.registerEntityRenderingHandler(EntityHaunter.class, new RenderHaunter(new ModelHaunter(), 0.7F));
}
 
开发者ID:GhostMonk3408,项目名称:MidgarCrusade,代码行数:43,代码来源:RenderRegistry.java

示例9: addArmor

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public int addArmor(String armor)
{
	return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
 
开发者ID:rodolphito,项目名称:Rival-Rebels-Mod,代码行数:6,代码来源:ClientProxy.java

示例10: addArmor

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
public int addArmor(String armor) {
	return RenderingRegistry.addNewArmourRendererPrefix(armor);				
}
 
开发者ID:TeamMonumental,项目名称:FissionWarfare,代码行数:4,代码来源:ClientProxy.java

示例11: addArmorPrefix

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
public int addArmorPrefix(String armor) {
    return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
 
开发者ID:Mitchellbrine,项目名称:SteelSheep,代码行数:4,代码来源:ClientProxy.java

示例12: getArmorIndex

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public int getArmorIndex(String string)
{
	return RenderingRegistry.addNewArmourRendererPrefix(string);
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:6,代码来源:ClientProxy.java

示例13: addArmor

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public int addArmor(String armorName) {
    return RenderingRegistry.addNewArmourRendererPrefix(armorName);
}
 
开发者ID:TheDarkEra,项目名称:TheDarkEra,代码行数:5,代码来源:ClientProxy.java

示例14: getArmorIndex

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
@Override
public int getArmorIndex(String armor)
{
    return RenderingRegistry.addNewArmourRendererPrefix( armor );
}
 
开发者ID:Maxwolf,项目名称:MC-MineAPI.Java,代码行数:6,代码来源:ClientProxy.java

示例15: addArmor

import cpw.mods.fml.client.registry.RenderingRegistry; //导入方法依赖的package包/类
public int addArmor(String armor)
{
    return RenderingRegistry.addNewArmourRendererPrefix(armor);
}
 
开发者ID:Arouka,项目名称:Clothier,代码行数:5,代码来源:ClientProxy.java


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