Package extracells.render.model

Source Code of extracells.render.model.ModelWalrus

package extracells.render.model;

import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;

public class ModelWalrus extends ModelBase
{
  public IModelCustom model;

  public ModelWalrus()
  {
    model = AdvancedModelLoader.loadModel("/assets/extracells/models/walrus.obj");
  }

  public void render()
  {
    Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation("extracells", "textures/blocks/walrus.png"));
    model.renderAll();
  }
}
TOP

Related Classes of extracells.render.model.ModelWalrus

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.