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


Java AdvancedModelLoader类代码示例

本文整理汇总了Java中net.minecraftforge.client.model.AdvancedModelLoader的典型用法代码示例。如果您正苦于以下问题:Java AdvancedModelLoader类的具体用法?Java AdvancedModelLoader怎么用?Java AdvancedModelLoader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: renderBase

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
private void renderBase(EntityExtruder extruder, double x, double y, double z) {
    GL11.glTranslated(x, y, z);
    float angle = determineAngle(extruder);
    switch (extruder.getFacing()) {
        case DOWN:
            GL11.glRotatef(angle, 1.0F, 0.0F, 0.0F);
            GL11.glTranslatef(0.0F, -0.5F, -0.5F);
            break;
        case UP:
            GL11.glRotatef(angle, 1.0F, 0.0F, 0.0F);
            GL11.glTranslatef(0.0F, -0.5F, 0.5F);
            break;
        case NORTH:
        case SOUTH:
        case WEST:
        case EAST:
            GL11.glRotatef(angle, 0.0F, 1.0F, 0.0F);
            break;
    }

    AdvancedModelLoader.loadModel(model).renderPart("Base");
}
 
开发者ID:awesommist,项目名称:Extruder,代码行数:23,代码来源:EntityExtruderRenderer.java

示例2: preInit

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
@Override
public void preInit(FMLPreInitializationEvent event) {
    super.preInit(event);

    MinecraftForge.EVENT_BUS.register(new ItemTooltipEventHandler());

    FMLCommonHandler.instance().bus().register(new KeyInputEventHandler());
    ClientRegistry.registerKeyBinding(Keybindings.charge);
    ClientRegistry.registerKeyBinding(Keybindings.mode);
    ClientRegistry.registerKeyBinding(Keybindings.release);
    ClientRegistry.registerKeyBinding(Keybindings.toggle);

    AdvancedModelLoader.registerModelHandler(new TechneModelLoader());

    ClientRegistry.bindTileEntitySpecialRenderer(TileCondenser.class, new RenderTileCondenser());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.condenser), new RenderItemCondenser());

    ClientRegistry.bindTileEntitySpecialRenderer(TileAlchemicalChest.class, new RenderTileAlchemicalChest());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.alchemicalChest), new RenderItemAlchemicalChest());

    ClientRegistry.bindTileEntitySpecialRenderer(TileCollector.class, new RenderTileCollector());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.collector), new RenderItemCollector());
}
 
开发者ID:AgileMods,项目名称:MateriaMuto,代码行数:24,代码来源:ClientProxy.java

示例3: 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

示例4: 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

示例5: render

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
public void render(){
    if(helmetModel == null) {
        helmetModel = AdvancedModelLoader.loadModel(Models.PNEUMATIC_HELMET);
        eyesModel = AdvancedModelLoader.loadModel(Models.PNEUMATIC_HELMET_EYES);
        faceModel = AdvancedModelLoader.loadModel(Models.PNEUMATIC_HELMET_FACE);
        if(!Config.useHelmetModel) {
            PneumaticCraft.proxy.getPlayer().addChatComponentMessage(new ChatComponentTranslation("message.date.ironman"));
        }
    }

    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glColor4d(1, 0.2, 0.2, 1);
    helmetModel.renderAll();
    GL11.glColor4d(1, 1, 0.7, 1);
    faceModel.renderAll();
    GL11.glColor4d(1, 1, 1, 1);
    GL11.glDisable(GL11.GL_CULL_FACE);
    eyesModel.renderAll();

    GL11.glEnable(GL11.GL_TEXTURE_2D);
}
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:22,代码来源:RenderItemPneumaticHelmet.java

示例6: 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

示例7: postInit

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
@Override
public void postInit(FMLPostInitializationEvent event)
{
    RenderingRegistry.registerEntityRenderingHandler(EntitySmallAsteroid.class, new RenderSmallAsteroid());
    RenderingRegistry.registerEntityRenderingHandler(EntityGrapple.class, new RenderGrapple());
    IModelCustom podModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/pod.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityEntryPod.class, new RenderEntryPod(podModel));
    IModelCustom rocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/tier3rocket.obj"));
    RenderingRegistry.registerEntityRenderingHandler(EntityTier3Rocket.class, new RenderTier3Rocket(rocketModel, AsteroidsModule.ASSET_PREFIX, "tier3rocket"));
    RenderingRegistry.registerEntityRenderingHandler(EntityAstroMiner.class, new RenderAstroMiner());
    IModelCustom grappleModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/grapple.obj"));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.grapple, new ItemRendererGrappleHook(grappleModel));
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReceiver), new ItemRendererBeamReceiver());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReflector), new ItemRendererBeamReflector());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.tier3Rocket, new ItemRendererTier3Rocket(rocketModel));
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.astroMiner, new ItemRendererAstroMiner());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.thermalPadding, new ItemRendererThermalArmor());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.shortRangeTelepad), new ItemRendererShortRangeTelepad());
    MinecraftForgeClient.registerItemRenderer(AsteroidsItems.heavyNoseCone, new ItemRendererHeavyNoseCone());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkway), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayOxygenPipe), new ItemRendererWalkway());
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayWire), new ItemRendererWalkway());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReflector.class, new TileEntityBeamReflectorRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReceiver.class, new TileEntityBeamReceiverRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMinerBase.class, new TileEntityMinerBaseRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShortRangeTelepad.class, new TileEntityShortRangeTelepadRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestAsteroids.class, new TileEntityTreasureChestRenderer());
    
    if (Loader.isModLoaded("craftguide"))
    	CraftGuideIntegration.register();
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:32,代码来源:AsteroidsModuleClient.java

示例8: TileEntityBubbleProviderRenderer

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
public TileEntityBubbleProviderRenderer(float colorRed, float colorGreen, float colorBlue)
{
    sphere = AdvancedModelLoader.loadModel(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "models/sphere.obj"));
    this.colorRed = colorRed;
    this.colorGreen = colorGreen;
    this.colorBlue = colorBlue;
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:8,代码来源:TileEntityBubbleProviderRenderer.java

示例9: 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

示例10: getModel

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
public static WavefrontObject getModel(String path)
{
    ResourceLocation rl = resourceMap.containsKey(path) ? resourceMap.get(path) : new ResourceLocation(path);
    if(!resourceMap.containsKey(path))
    {
        resourceMap.put(path, rl);
    }
    return (WavefrontObject) AdvancedModelLoader.loadModel(rl);
}
 
开发者ID:XFactHD,项目名称:RFUtilities,代码行数:10,代码来源:ClientUtils.java

示例11: ItemRenderBase

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
public ItemRenderBase(String modelName, String texturePath) {
	this.textureName = texturePath;
	this.modelName = modelName;
	
	model = AdvancedModelLoader.loadModel(new ResourceLocation(Reference.MOD_ID + ":obj/" + modelName + ".obj"));
	texture = new ResourceLocation(Reference.MOD_ID + ":textures/models/" + texturePath + ".png");
}
 
开发者ID:TeamMonumental,项目名称:FissionWarfare,代码行数:8,代码来源:ItemRenderBase.java

示例12: postInit

import net.minecraftforge.client.model.AdvancedModelLoader; //导入依赖的package包/类
@Override
public void postInit(FMLPostInitializationEvent event)
{
    rocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(AmunRa.ASSETPREFIX, "models/shuttle2.obj"));
    engineModel = AdvancedModelLoader.loadModel(new ResourceLocation(AmunRa.ASSETPREFIX, "models/jet.obj"));
    engineModelIon = AdvancedModelLoader.loadModel(new ResourceLocation(AmunRa.ASSETPREFIX, "models/jet-ion.obj"));
    ClientProxy.registerEntityRenderers();
    ClientProxy.registerItemRenderers();
}
 
开发者ID:katzenpapst,项目名称:amunra,代码行数:10,代码来源:ClientProxy.java

示例13: 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

示例14: 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

示例15: 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


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