Package mffs.render.model

Source Code of mffs.render.model.ModelCube

package mffs.render.model;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;

/**
* A cube model.
*
* @author Calclavia
*/
@SideOnly(Side.CLIENT)
public class ModelCube extends ModelBase
{
  public static final ModelCube INSTNACE = new ModelCube();
  private ModelRenderer cube;

  public ModelCube()
  {
    this.cube = new ModelRenderer(this, 0, 0);
    int size = 16;
    this.cube.addBox(-size / 2, -size / 2, -size / 2, size, size, size);
    this.cube.setTextureSize(112, 70);
    this.cube.mirror = true;
  }

  public void render()
  {
    float f = 0.0625f;
    this.cube.render(f);
  }
}
TOP

Related Classes of mffs.render.model.ModelCube

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.