本文整理汇总了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));
}
示例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();
}
示例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));
}
示例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"))
{
}
}
示例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());
}
示例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));
}
示例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());
}
示例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();
}
}
示例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());
}
示例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();
}
示例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();
}
示例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());
}
示例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());
}
示例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());
}
示例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);
}