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


Java ClientRegistry.bindTileEntitySpecialRenderer方法代码示例

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


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

示例1: setupModels

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@SubscribeEvent
   public static void setupModels(ModelRegistryEvent event) {
	
	registerBlockModel(lodestone_ore);
	registerBlockModel(celestial_stone);
	registerBlockModel(rift);
	registerBlockModel(pipe);
	registerBlockModel(stability_projector);
	
	registerBlockModel(test_tank);
	registerBlockModel(creative_tank);
	
	((ItemMaterial) material).registerModels();
	registerItemModel(seeing_stone);
	registerItemModel(tuning_fork);
	
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRift.class, new TileEntityRiftRenderer());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPipe.class, new TileEntityPipeRenderer());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStabilityProjector.class, new TileEntityStabilityProjectorRenderer());
}
 
开发者ID:the-realest-stu,项目名称:Etheric,代码行数:21,代码来源:RegistryManager.java

示例2: preInit

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit() {
	super.preInit();
	ClientRegistry.bindTileEntitySpecialRenderer(TileTube.class, new TubeItemRenderer());

	// Register textures
	TextureRegistry.registerTexture(ModelTube.TUBE_TEX);
	TextureRegistry.registerTexture(ModelTube.TUBE_TEX_COL);

	// Register block models
	ModelRegistry.registerBlockModel(blockTube, new ModelTube());

	// Register item models
	ModelRegistry.registerItemResourceLoc(blockDisplacer, new ResourceLocation("simpletubes:block_displacer"), 0);
	ModelRegistry.registerItemModel(blockTube, new ModelTube.TubeItemModel());

	ModelRegistry.registerItemResourceLoc(itemPaintbrush, new ResourceLocation("simpletubes:item_paintbrush"), 0);
	for (int i = 0; i < 16; i++)
		ModelRegistry.registerItemResourceLoc(itemPaintbrush, new ResourceLocation("simpletubes:item_paintbrush_" + EnumDyeColor.byMetadata(i).getUnlocalizedName()), i + 1);

	ModelRegistry.registerItemResourceLoc(itemUpgrade, new ResourceLocation("simpletubes:item_upgrade_filter"), 0);

	MinecraftForge.EVENT_BUS.register(new TextureRegistry());
	MinecraftForge.EVENT_BUS.register(new ModelRegistry());
}
 
开发者ID:oMilkyy,项目名称:SimpleTubes,代码行数:26,代码来源:ClientProxy.java

示例3: init

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void init(FMLInitializationEvent e) {
	super.init(e);
	{
		Sphere sphere = new Sphere();
		sphere.setDrawStyle(GLU.GLU_FILL);
		sphere.setNormals(GLU.GLU_SMOOTH);
		sphere.setOrientation(GLU.GLU_OUTSIDE);

		defierSphereIdOutside = GL11.glGenLists(1);
		GL11.glNewList(defierSphereIdOutside, GL11.GL_COMPILE);
		sphere.draw(0.5F, 30, 30);
		GL11.glEndList();

		sphere.setOrientation(GLU.GLU_INSIDE);
		defierSphereIdInside = GL11.glGenLists(1);
		GL11.glNewList(defierSphereIdInside, GL11.GL_COMPILE);
		sphere.draw(0.5F, 30, 30);
		GL11.glEndList();
	}
	ClientRegistry.bindTileEntitySpecialRenderer(DefierTileEntity.class, new DefierTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(EnergyProviderTileEntity.class, new EnergyProviderTESR());
}
 
开发者ID:tiffit,项目名称:Defier,代码行数:24,代码来源:ClientProxy.java

示例4: initModel

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void initModel() {
	StateMapperBase ignoreState = new StateMapperBase() {
		@Override
		protected ModelResourceLocation getModelResourceLocation(IBlockState iBlockState) {
			return ModelPipeBaked.BAKED_MODEL;
		}
	};
	ModelLoader.setCustomStateMapper(this, ignoreState);
	ModelResourceLocation itemModelResourceLocation = new ModelResourceLocation(getRegistryName(), "inventory");
	//for(PipeType type : PipeType.values())
	// Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(this), type.getMeta(), itemModelResourceLocation);
	for(PipeType type : PipeType.values())
		ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), type.getMeta(), itemModelResourceLocation);
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPipe.class, new TileEntityPipeRenderer());
}
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:18,代码来源:BlockPipe.java

示例5: preInit

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit( FMLPreInitializationEvent e ){
    super.preInit( e );

    LogHelper.info( "Trying to load CustomAchievements Translation Resource Pack");
    try {
        List packs = (List) ObfuscationReflectionHelper.getPrivateValue( Minecraft.class, Minecraft.getMinecraft(), new String[]{"field_110449_ao"} ); //defaultResourcePacks
        packs.add( new AchievementResourcePack() );
        ObfuscationReflectionHelper.setPrivateValue( Minecraft.class, Minecraft.getMinecraft(), packs, new String[]{"field_110449_ao"} );
    } catch( Exception exception ){
        LogHelper.error( "Loading CustomAchievements Translation Resource Pack failed.");
        exception.printStackTrace();
    }

    ModBlocks.loadTextures();
    ClientRegistry.bindTileEntitySpecialRenderer( TileEntityTrophy.class, new RenderTrophy() );
}
 
开发者ID:davqvist,项目名称:CustomAchievements,代码行数:18,代码来源:ClientProxy.java

示例6: registerRenders

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
private void registerRenders() {
	RenderingRegistry.registerEntityRenderingHandler(EntityBrew.class, BrewRenderer::new);
	RenderingRegistry.registerEntityRenderingHandler(EntityBrewLinger.class, EmptyRenderer::new);
	RenderingRegistry.registerEntityRenderingHandler(EntitySpellCarrier.class, SpellRenderer::new);

	ClientRegistry.bindTileEntitySpecialRenderer(TileCauldron.class, new TileRenderCauldron());
}
 
开发者ID:Um-Mitternacht,项目名称:Bewitchment,代码行数:8,代码来源:ClientProxy.java

示例7: regRenders

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
   public void regRenders(FMLPreInitializationEvent event) {
   	super.regRenders(event);
   	
   	HarshenBlocks.regRenders();
   	
	HarshenItems.regRenders();
	
	HarshenFluids.regRenders();
	
	HarshenArmors.regRenders();
	
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenDimensionalPedestal.class, new RendererDimensionalPedestal());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHereticCauldron.class, new RendererHereticCauldron());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenDisplayBlock.class, new RendererHarshenDisplayBlock());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenSpawner.class, new RendererHarshenSpawner());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPedestalSlab.class, new RendererPedestalSlab());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBloodFactory.class, new RendererBloodFactory());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHarshenMagicTable.class, new RendererMagicTable());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCaulronBlock.class, new RendererCauldronBlock());

	
	RenderingRegistry.registerEntityRenderingHandler(EntitySoullessKnight.class, new EntityFactories.FactorySoullessKnight());
	RenderingRegistry.registerEntityRenderingHandler(EntitySoulPart.class, new EntityFactories.FactorySoulPart());
	RenderingRegistry.registerEntityRenderingHandler(EntityThrown.class, new EntityFactories.FactoryEntityThrown());
	RenderingRegistry.registerEntityRenderingHandler(EntityHarshenSoul.class, new EntityFactories.FactoryHarhenSoul());
}
 
开发者ID:kenijey,项目名称:harshencastle,代码行数:28,代码来源:ClientProxy.java

示例8: preInit

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit()
{
    super.preInit();

    GeneralLaymansAestheticSpyingScreen.eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(GeneralLaymansAestheticSpyingScreen.eventHandlerClient);

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGlassBase.class, new TileEntityGlassRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGlassTerminal.class, new TileEntityGlassTerminalRenderer());
}
 
开发者ID:iChun,项目名称:GeneralLaymansAestheticSpyingScreen,代码行数:12,代码来源:ProxyClient.java

示例9: init

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void init(FMLInitializationEvent event)
{
	registerColors();

	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAnimaConjurer.class,
			new AnimaConjurerTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityArcaneTransfigurationTable.class,
			new ArcaneTransfigurationTableTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWritingDesk.class, new WritingDeskTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAnalyzer.class, new AnalyzerTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAnimusMaterializer.class, new AnimusMaterializerTESR());
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntityInfernalSmelter.class, new InfernalSmelterTESR());
}
 
开发者ID:raphydaphy,项目名称:ArcaneMagic,代码行数:15,代码来源:ClientProxy.java

示例10: registerClient

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public static void registerClient()
{
    ClientRegistry.bindTileEntitySpecialRenderer(TileMicroscope.class, new TESRMicroscope());
    ClientRegistry.bindTileEntitySpecialRenderer(TileCodeStorage.class, new TESRCodeStorage());
    ClientRegistry.bindTileEntitySpecialRenderer(TileMagibench.class, new TESRMagibench());
    ClientRegistry.bindTileEntitySpecialRenderer(TileStoneCrusher.class, new TESRStoneCrusher());
}
 
开发者ID:PearXTeam,项目名称:PurificatiMagicae,代码行数:9,代码来源:TileRegistry.java

示例11: registerModels

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@SubscribeEvent
@SideOnly(CLIENT)
public static void registerModels(ModelRegistryEvent event) throws Exception
{
    for (Field f : Items.class.getDeclaredFields())
    {
        Item item = (Item)f.get(null);
        ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
    }
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityQuarry.class, new QuarryRenderer());

}
 
开发者ID:LexManos,项目名称:VoidUtils,代码行数:13,代码来源:VoidUtils.java

示例12: regModels

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public static void regModels()
{
    for(Block block : BLOCKS)
        ClientUtil.regModel(block);

    ClientRegistry.bindTileEntitySpecialRenderer(TileBbq.class, new RenderBbq());
}
 
开发者ID:alxnns1,项目名称:MobHunter,代码行数:9,代码来源:MHBlocks.java

示例13: preInit

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit() {
    super.preInit();
    // Registry Entity
    RenderingRegistry.registerEntityRenderingHandler(EntityTest.class, RenderTest.FACTORY);
    RenderingRegistry.registerEntityRenderingHandler(EntityTest2.class, RenderTest2.FACTORY);
    RenderingRegistry.registerEntityRenderingHandler(EntityTest3.class, RenderTest3.FACTORY);
    RenderingRegistry.registerEntityRenderingHandler(EntityTest4.class, RenderTest4.FACTORY);

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTest.class, new CSTileEntitySpecialRenderer(Mod_Test.MODID, "craftstudio_api_test", 64,
            32, new ResourceLocation(Mod_Test.MODID, "textures/entity/craftstudio_api_test.png")));
}
 
开发者ID:Leviathan-Studio,项目名称:CraftStudioAPI,代码行数:13,代码来源:ClientProxy.java

示例14: preInit

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void preInit()
{
    super.preInit();
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySoulSpawner.class, new TileEntitySoulSpawnerRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySoulContainer.class, new TileEntitySoulContainerRenderer());
}
 
开发者ID:Thog,项目名称:Twisted-Souls,代码行数:8,代码来源:ClientProxy.java

示例15: init

import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void init() {
    ModBlocks.registerRenders();
    ModItems.registerRenders();

    ClientRegistry.bindTileEntitySpecialRenderer(TileToaster.class, new RendererToaster());
}
 
开发者ID:tjkenmate,项目名称:TeslaEssentials,代码行数:8,代码来源:ClientProxy.java


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