當前位置: 首頁>>代碼示例>>Java>>正文


Java AdvancedModelLoader.loadModel方法代碼示例

本文整理匯總了Java中net.minecraftforge.client.model.AdvancedModelLoader.loadModel方法的典型用法代碼示例。如果您正苦於以下問題:Java AdvancedModelLoader.loadModel方法的具體用法?Java AdvancedModelLoader.loadModel怎麽用?Java AdvancedModelLoader.loadModel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraftforge.client.model.AdvancedModelLoader的用法示例。


在下文中一共展示了AdvancedModelLoader.loadModel方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: EnergyContainerTESR

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public EnergyContainerTESR() {
    texture = new ResourceLocation("minecraft:textures/blocks/planks_oak.png");
    model = AdvancedModelLoader.loadModel(new ResourceLocation("biotechmod:models/energyContainer.obj"));
    potato = new RenderItem() {
        public boolean shouldBob() {
            return false;
        }
        public boolean shouldSpreadItems() {
            return false;
        }
    };
    dummy = new EntityItem(null);
    dummy.hoverStart = 0.0f;
    dummy.motionX = 0.0f;
    dummy.motionY = 0.0f;
    dummy.motionZ = 0.0f;
    potato.setRenderManager(RenderManager.instance);
}
 
開發者ID:HotelCalifornia,項目名稱:BiotechMod,代碼行數:19,代碼來源:EnergyContainerTESR.java

示例2: registerRenderInformation

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
@Override
public void registerRenderInformation()
{
	ClientRegistry.bindTileEntitySpecialRenderer(SCVenusTileEntityTreasureChest.class, new SCVenusTileEntityTreasureChestRenderer());
	
    RenderingRegistry.addNewArmourRendererPrefix("gem");
    RenderingRegistry.addNewArmourRendererPrefix("sulfer");
    RenderingRegistry.addNewArmourRendererPrefix("jetpack");

    RenderingRegistry.registerEntityRenderingHandler(SCVenusEntityVenusianVillager.class, new SCVenusRenderVenusianVillager());
    RenderingRegistry.registerEntityRenderingHandler(SCVenusEntityFlameling.class, new SCVenusRenderFlameling());
    RenderingRegistry.registerEntityRenderingHandler(SCVenusEntityEvolvedBlaze.class, new SCVenusRenderEvolvedBlaze());
  
    IModelCustom cargoRocketModel = AdvancedModelLoader.loadModel("/assets/galacticraftmars/models/cargoRocket.obj");

    RenderingRegistry.registerEntityRenderingHandler(SCVenusEntityRocketT3.class, new GCCoreRenderSpaceship(new SCCoreModelSpaceshipTier3(), VenusCore.ASSET_DOMAIN, "rocketT3"));
    MinecraftForgeClient.registerItemRenderer(VenusItems.spaceshipT3.itemID, new SCVenusItemRendererSpaceshipT3(cargoRocketModel));
}
 
開發者ID:4Space,項目名稱:4-Space-Legacy,代碼行數:19,代碼來源:ClientProxyVenus.java

示例3: postInit

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的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

示例4: RenderRhodes

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public RenderRhodes()
{
   	texture = new ResourceLocation(RivalRebels.MODID, "textures/entity/rhodes.png");
   	flametex = new ResourceLocation(RivalRebels.MODID, "textures/entity/flame.png");
   	head = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/head.obj"));
   	torso = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/torso.obj"));
   	flag = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/flag.obj"));
   	upperarm = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/upperarm.obj"));
   	lowerarm = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/lowerarm.obj"));
   	flamethrower = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/flamethrower.obj"));
   	rocketlauncher = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/rocketlauncher.obj"));
   	thigh = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/thigh.obj"));
   	shin = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/shin.obj"));
   	flame = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/flame.obj"));
   	laser = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/laser.obj"));
   	booster = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/booster.obj"));
   	
   	ffhead = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/ffhead.obj"));
   	fftorso = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/fftorso.obj"));
   	ffupperarm = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/ffupperarm.obj"));
   	fflowerarm = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/fflowerarm.obj"));
   	ffthigh = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/ffthigh.obj"));
   	ffshin = AdvancedModelLoader.loadModel(new ResourceLocation(RivalRebels.MODID, "models/rhodes/ffshin.obj"));
   	
	modelsphere = new ModelBlastSphere();
	try
	{
		md = ModelFromObj.readObjFile("d.obj");
		b2jet = ModelFromObj.readObjFile("s.obj");
		md.scale(2.5f, 2.5f, 2.5f);
		b2jet.scale(2.5f, 2.5f, 2.5f);
	}
	catch (Exception e)
	{
		e.printStackTrace();
	}
}
 
開發者ID:rodolphito,項目名稱:Rival-Rebels-Mod,代碼行數:38,代碼來源:RenderRhodes.java

示例5: MediumQuantumTankRenderer

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public MediumQuantumTankRenderer()
{
    modelBlock = AdvancedModelLoader.loadModel(new ResourceLocation("m4ththings","models/quantumTank.obj"));
    modelTexture = new ResourceLocation("m4ththings","models/fluidTank3.png");
    fluidTexture = TextureMap.locationBlocksTexture;
    modelCube = AdvancedModelLoader.loadModel(new ResourceLocation("m4ththings","models/cube.obj"));
    modelHexPlate = AdvancedModelLoader.loadModel(new ResourceLocation("m4ththings","models/sphereHexPlate.obj"));
    hexTexture = new ResourceLocation("m4ththings","models/sphereHexPlate.png");
    getValveIcons();
}
 
開發者ID:M4thG33k,項目名稱:M4thThings,代碼行數:11,代碼來源:MediumQuantumTankRenderer.java

示例6: SolarGeneratorRenderer

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public SolarGeneratorRenderer()
{
    super();

    blockModel = AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID,"models/solarGenerator.obj"));
    blockTexture = new ResourceLocation(Reference.MOD_ID,"models/solarGenerator.png");
    energyTexture = new ResourceLocation(Reference.MOD_ID,"textures/overlays/energySquare.png");
    fluidTexture = new ResourceLocation(Reference.MOD_ID,"textures/overlays/waterSquare.png");
    sunEmblem = new ResourceLocation(Reference.MOD_ID,"textures/overlays/SunEmblem.png");
}
 
開發者ID:M4thG33k,項目名稱:M4thThings,代碼行數:11,代碼來源:SolarGeneratorRenderer.java

示例7: SolarCollectorRenderer

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public SolarCollectorRenderer()
{
    model = AdvancedModelLoader.loadModel(new ResourceLocation("m4ththings","models/solarCollection.obj"));
    glassPanesModel = AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID,"models/solarCollectionGlassPanes.obj"));
    modelBase = AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID,"models/solarCollectionBase.obj"));
    tankModel =  AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID,"models/solarCollectionTanks.obj"));
    modelTexture = new ResourceLocation("m4ththings","models/defaultTexture.png");
    textureMap = TextureMap.locationBlocksTexture;
    glassPaneTexture = new ResourceLocation(Reference.MOD_ID,"textures/blocks/glassTest.png");
    baseTexture = new ResourceLocation("m4ththings","models/solarCollectionBase.png");
    tankTexture = new ResourceLocation("m4ththings","models/solarCollectionTanks.png");
}
 
開發者ID:M4thG33k,項目名稱:M4thThings,代碼行數:13,代碼來源:SolarCollectorRenderer.java

示例8: SimpleBlockOBJRenderer

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public SimpleBlockOBJRenderer(Addon addon, int renderID, ResourceLocation modelLocation) {
    super(addon, renderID);
    final IModelCustom temp = AdvancedModelLoader.loadModel(modelLocation);
    if (!(temp instanceof WavefrontObject)) {
        throw new IllegalArgumentException("SimpleBlockOBJRenderer is only for WaveFrontObjects (.obj)!");
    }
    model = (WavefrontObject) temp;
}
 
開發者ID:ObsidianBox,項目名稱:Magma,代碼行數:9,代碼來源:SimpleBlockOBJRenderer.java

示例9: ModelRobot

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public ModelRobot() {

    	modelBaseBase = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/base/base.obj");
    	modelBaseBlock = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/base/block.obj");
    	modelBaseEye = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/base/eye.obj");
    	modelBaseThrust = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/base/thrust.obj");
    	modelBaseTurnbottom = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/base/turnbottom.obj");
    	modelLeftArm = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/leftarm/arm.obj");
    	modelLeftArmZap = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/leftarm/armzap.obj");
    	modelRightArm = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/rightarm/arm.obj");
    	modelRightArmZap = AdvancedModelLoader.loadModel("/mods/weapons/models/robot/rightarm/armzap.obj");
    }
 
開發者ID:Pumuckl007,項目名稱:WeaponsMod,代碼行數:13,代碼來源:ModelRobot.java

示例10: Rendermalleablestaff

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public Rendermalleablestaff()
   {
/* 23 */     this.BlackquenaModel = AdvancedModelLoader.loadModel(new ResourceLocation("FF7:models/malleablestaff.obj"));
/* 24 */     this.BlackquenaTexture = new ResourceLocation("FF7:models/malleablestaff.png");
   }
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:Rendermalleablestaff.java

示例11: RenderTileEntityventshaft1

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public RenderTileEntityventshaft1(){
        texture = new ResourceLocation(Main.MODID, "models/ventshaft1.png");
        objModelLocation = new ResourceLocation(Main.MODID, "models/ventshaft1.obj");
        model = AdvancedModelLoader.loadModel(objModelLocation);
}
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:RenderTileEntityventshaft1.java

示例12: Rendercinquesmace

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public Rendercinquesmace()
   {
/* 23 */     this.ApocalypseModel = AdvancedModelLoader.loadModel(new ResourceLocation("FF7:models/cinquesmace.obj"));
/* 24 */     this.ApocalypseTexture = new ResourceLocation("FF7:models/cinquesmace.png");
   }
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:Rendercinquesmace.java

示例13: Rendersicesscythe

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public Rendersicesscythe()
   {
/* 23 */     this.CleansingstaffModel = AdvancedModelLoader.loadModel(new ResourceLocation("FF7:models/sicesscythe.obj"));
/* 24 */     this.CleansingstaffTexture = new ResourceLocation("FF7:models/sicesscythe.png");
   }
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:Rendersicesscythe.java

示例14: Rendertisword3

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public Rendertisword3()
   {
/* 23 */     this.DaggerModel = AdvancedModelLoader.loadModel(new ResourceLocation("FF7:models/Tisword3.obj"));
/* 24 */     this.DaggerTexture = new ResourceLocation("FF7:models/Tisword3.png");
   }
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:Rendertisword3.java

示例15: Rendertisword2

import net.minecraftforge.client.model.AdvancedModelLoader; //導入方法依賴的package包/類
public Rendertisword2()
   {
/* 23 */     this.CypresspoleModel = AdvancedModelLoader.loadModel(new ResourceLocation("FF7:models/Tisword2.obj"));
/* 24 */     this.CypresspoleTexture = new ResourceLocation("FF7:models/Tisword2.png");
   }
 
開發者ID:GhostMonk3408,項目名稱:MidgarCrusade,代碼行數:6,代碼來源:Rendertisword2.java


注:本文中的net.minecraftforge.client.model.AdvancedModelLoader.loadModel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。