net.minecraftforge.client.model.AdvancedModelLoader Java Examples

The following examples show how to use net.minecraftforge.client.model.AdvancedModelLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RenderItemPneumaticHelmet.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
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);
}
 
Example #2
Source File: TileEntityHelmRenderer.java    From archimedes-ships with MIT License 4 votes vote down vote up
public TileEntityHelmRenderer()
{
	modelHelm = AdvancedModelLoader.loadModel(MODEL_HELM);
}
 
Example #3
Source File: ItemModelEngineRenderer.java    From archimedes-ships with MIT License 4 votes vote down vote up
public ItemModelEngineRenderer( TileEntityModelEngineRenderer tileEntityModelEngineRenderer, TileEntityEngine tileEntityEngine )
{
	engineModelLoc = new ResourceLocation( ArchimedesShipMod.ASSETS, "models/entity/ship_engine.obj" );
	engineTexture = new ResourceLocation( ArchimedesShipMod.ASSETS, "textures/entity/ship_engine.png" );
	engineModel = AdvancedModelLoader.loadModel( engineModelLoc );
}
 
Example #4
Source File: ItemModelHelmRenderer.java    From archimedes-ships with MIT License 4 votes vote down vote up
public ItemModelHelmRenderer( TileEntityModelHelmRenderer tileEntityRenderer, TileEntityHelm tileEntity )
{
	helmModelLoc = new ResourceLocation( ArchimedesShipMod.ASSETS, "models/entity/ship_helm.obj" );
	helmTexture = new ResourceLocation( ArchimedesShipMod.ASSETS, "textures/entity/ship_helm.png" );
	helmModel = AdvancedModelLoader.loadModel( helmModelLoc );
}
 
Example #5
Source File: TileEntityModelHelmRenderer.java    From archimedes-ships with MIT License 4 votes vote down vote up
public TileEntityModelHelmRenderer()
{
	helmModelLoc = new ResourceLocation( ArchimedesShipMod.ASSETS, "models/entity/ship_helm.obj" );
	helmTexture = new ResourceLocation( ArchimedesShipMod.ASSETS, "textures/entity/ship_helm.png" );
	helmModel = AdvancedModelLoader.loadModel( helmModelLoc );
}
 
Example #6
Source File: TileEntityModelEngineRenderer.java    From archimedes-ships with MIT License 4 votes vote down vote up
public TileEntityModelEngineRenderer()
{
	engineModelLoc = new ResourceLocation( ArchimedesShipMod.ASSETS, "models/entity/ship_engine.obj" );
	engineTexture = new ResourceLocation( ArchimedesShipMod.ASSETS, "textures/entity/ship_engine.png" );
	engineModel = AdvancedModelLoader.loadModel( engineModelLoc );
}
 
Example #7
Source File: BaseModel.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
public BaseModel(String name, String textureName, String[] staticParts, String[] dynamicParts){
    model = AdvancedModelLoader.loadModel(new ResourceLocation(Models.MODELS + name));
    resLoc = new ResourceLocation(Textures.MODEL_LOCATION + textureName);
    this.staticParts = staticParts;
    this.dynamicParts = dynamicParts;
}
 
Example #8
Source File: ModelWalrus.java    From ExtraCells1 with MIT License 4 votes vote down vote up
public ModelWalrus()
{
	model = AdvancedModelLoader.loadModel("/assets/extracells/models/walrus.obj");
}