本文整理汇总了Java中cpw.mods.fml.client.registry.RenderingRegistry类的典型用法代码示例。如果您正苦于以下问题:Java RenderingRegistry类的具体用法?Java RenderingRegistry怎么用?Java RenderingRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RenderingRegistry类属于cpw.mods.fml.client.registry包,在下文中一共展示了RenderingRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerBlockRenderers
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
private void registerBlockRenderers() {
if (EtFuturum.enableSlimeBlock)
RenderingRegistry.registerBlockHandler(new BlockSlimeBlockRender());
if (EtFuturum.enableDoors)
RenderingRegistry.registerBlockHandler(new BlockDoorRenderer());
if (EtFuturum.enableBanners)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBanner.class, new TileEntityBannerRenderer());
if (EtFuturum.enableFancySkulls)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, new TileEntityFancySkullRenderer());
if (EtFuturum.enableChorusFruit) {
RenderingRegistry.registerBlockHandler(new BlockEndRodRender());
RenderingRegistry.registerBlockHandler(new BlockChorusFlowerRender());
RenderingRegistry.registerBlockHandler(new BlockChorusPlantRender());
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEndRod.class, new TileEntityEndRodRenderer());
}
if (EtFuturum.enableColourfulBeacons)
ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNewBeacon.class, new TileEntityNewBeaconRenderer());
RenderingRegistry.registerBlockHandler(new BlockChestRenderer());
}
示例2: 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));
}
示例3: 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();
}
示例4: 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));
}
示例5: registerRenderers
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
public static void registerRenderers(Class<?> type)
{
Render render;
try
{
render = (Render)type.newInstance();
}
catch (Exception e)
{
return;
}
RenderingRegistry.registerEntityRenderingHandler(EntityPlayerSP.class, render);
RenderingRegistry.registerEntityRenderingHandler(EntityOtherPlayerMP.class, render);
render.setRenderManager(RenderManager.instance);
}
示例6: 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"))
{
}
}
示例7: registerInit
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
static void registerInit(@SuppressWarnings("UnusedParameters") FMLInitializationEvent event) {
//TileEntityの登録 =============================================================================================
GameRegistry.registerTileEntity(TileEntityClayCrucible.class, "tileClayCrucible");
GameRegistry.registerTileEntity(TileEntityClayCrucibleHeater.class, "tileClayCrucibleHeater");
//WorldGeneratorの登録 =========================================================================================
GameRegistry.registerWorldGenerator(new OreGenerator(), 2);
//チャンク生成イベントのフック
MinecraftForge.EVENT_BUS.register(new AMMStructureEventHandler());
MapGenStructureIO.registerStructure(StructureTestStart.class, "Test");
MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest1.class, "Test1");
MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest2.class, "Test2");
MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest3.class, "Test3");
MapGenStructureIO.func_143031_a(StructureTestStart.ComponentTest4.class, "Test4");
MapGenStructureIO.registerStructure(StructureTiamatStart.class, "TiamatComet");
MapGenStructureIO.func_143031_a(ComponentTiamatCenter.class, "TiamaitCometCenter");
MapGenStructureIO.func_143031_a(ComponentTiamatCenterLine.class, "TiamatCometCenterLine");
EntityRegistry.registerModEntity(EntityHoeHoeMan.class, "HoeHoeMan", 0, AntiMatterModCore.MOD_ID, 250, 1, false);//中ボスの追加
if (FMLCommonHandler.instance().getSide() == Side.CLIENT) {
RenderingRegistry.registerEntityRenderingHandler(EntityHoeHoeMan.class, new RenderHoeHoeMan());
}
//村のチェストの中身============================================================================================
//ChestGenHooks.addItem(ChestGenHooks.VILLAGE_BLACKSMITH, new WeightedRandomChestContent(ingot_01,1,1,5,5));
//ChestGenHooks.addItem(ChestGenHooks.VILLAGE_BLACKSMITH, new WeightedRandomChestContent(ingot_01,2,1,5,5));
ChestGenHooks village =ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH);
village.setMax(village.getMax()+10);
village.setMin(village.getMin()+10);
}
示例8: 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));
}
示例9: 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());
}
示例10: 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();
}
}
示例11: 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());
}
示例12: registerRenderThings
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
public void registerRenderThings()
{
RenderingRegistry.registerEntityRenderingHandler(EntityZombieNotch.class, new RenderZombieNotch(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieMiner.class, new RenderZombieMiner(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieChef.class, new RenderZombieChef(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieCreeper.class, new RenderZombieCreeper(new ModelCreeper(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombiePirate.class, new RenderZombiePirate(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombiePa.class, new RenderZombiePa(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityNetherZombie.class, new RenderNetherZombie(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieCyborg.class, new RenderZombieCyborg(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieDwarf.class, new RenderZombieDwarf(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieHerobrine.class, new RenderZombieHerobrine(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieKing.class, new RenderZombieKing(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityZombieKnight.class, new RenderZombieKnight(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntityDiscoZombie.class, new RenderDiscoZombie(new ModelZombie(), 0));
RenderingRegistry.registerEntityRenderingHandler(EntitySurvivor.class, new RenderSurvivor(new ModelBiped(), 0));
}
示例13: init
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
@Override
public void init(FMLInitializationEvent event)
{
ISimpleBlockRenderingHandler myISBRH = new BlockRendererMultiOre();
RenderingRegistry.registerBlockHandler(myISBRH.getRenderId(), myISBRH);
ISimpleBlockRenderingHandler dummyRenderer = new BlockRendererDummy();
RenderingRegistry.registerBlockHandler(dummyRenderer.getRenderId(), dummyRenderer);
ISimpleBlockRenderingHandler msBoosterRenderer = new BlockRendererMothershipBooster();
RenderingRegistry.registerBlockHandler(msBoosterRenderer.getRenderId(), msBoosterRenderer);
ISimpleBlockRenderingHandler chestRenderer = new BlockRendererARChest();
RenderingRegistry.registerBlockHandler(chestRenderer.getRenderId(), chestRenderer);
SystemRenderEventHandler clientEventHandler = new SystemRenderEventHandler();
FMLCommonHandler.instance().bus().register(clientEventHandler);
MinecraftForge.EVENT_BUS.register(clientEventHandler);
FMLCommonHandler.instance().bus().register(new TickHandlerClient());
}
示例14: 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();
}
示例15: registerRenderInformation
import cpw.mods.fml.client.registry.RenderingRegistry; //导入依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerRenderInformation()
{
RenderingRegistry.registerBlockHandler(CWTFCBlocks.mixingBowlRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderMixingBowl());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.prepTableRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderPrepTable());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.cookingPotRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderCookingPot());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.meatRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderMeat());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.bowlRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderBowl());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.clayOvenRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderClayOven());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.sandwichRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderSandwich());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.tableStorageRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderTableStorage());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.customCropRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderCrop());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.fruitTreeRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderFruitTree());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.nutLeavesRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderFruitTree());
RenderingRegistry.registerBlockHandler(CWTFCBlocks.lumberConstructRenderID = RenderingRegistry.getNextAvailableRenderId(), new RenderLumberConstruct());
}