Package powercrystals.minefactoryreloaded.render.model

Source Code of powercrystals.minefactoryreloaded.render.model.RedNetHistorianModel

package powercrystals.minefactoryreloaded.render.model;

import powercrystals.minefactoryreloaded.tile.rednet.TileEntityRedNetHistorian;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;

public class RedNetHistorianModel extends ModelBase
{
  private ModelRenderer _main;
 
  public RedNetHistorianModel()
  {
    textureWidth = 64;
    textureHeight = 32;
   
    _main = new ModelRenderer(this, 0, 0);
    _main.addBox(0F, 0F, 0F, 16, 16, 4);
    _main.setRotationPoint(0F, 0F, 0F);
    _main.setTextureSize(64, 32);
    _main.mirror = true;
    setRotation(_main, 0F, 0F, 0F);
  }
 
  public void render(TileEntityRedNetHistorian historian)
  {
    _main.render(0.0625F);
  }
 
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.render.model.RedNetHistorianModel

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.