本文整理汇总了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());
}
示例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());
}
示例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());
}
示例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());
}
示例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() );
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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")));
}
示例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());
}
示例15: init
import net.minecraftforge.fml.client.registry.ClientRegistry; //导入方法依赖的package包/类
@Override
public void init() {
ModBlocks.registerRenders();
ModItems.registerRenders();
ClientRegistry.bindTileEntitySpecialRenderer(TileToaster.class, new RendererToaster());
}