Package lukeperkin.craftingtableii

Source Code of lukeperkin.craftingtableii.ModelCraftingTableII

// Date: 02/01/2012 16:06:25
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX

package lukeperkin.craftingtableii;

import net.minecraft.src.Entity;
import net.minecraft.src.ModelBase;
import net.minecraft.src.ModelRenderer;

public class ModelCraftingTableII extends ModelBase
{
  //fields
    ModelRenderer Table;
    ModelRenderer Door;
    ModelRenderer door_side1;
    ModelRenderer door_side2;
    ModelRenderer door_topside1;
    ModelRenderer door_topside2;
    ModelRenderer Book;
 
  public ModelCraftingTableII()
  {
      textureWidth = 128;
      textureHeight = 64;
   
      Table = new ModelRenderer(this, 0, 0);
      Table.addBox(-7F, 0F, -7F, 9, 16, 14);
      Table.setRotationPoint(0F, 0F, 0F);
      Table.setTextureSize(128, 64);
      Table.mirror = true;
      setRotation(Table, 0F, 0F, 0F);
      Door = new ModelRenderer(this, 96, 0);
      Door.addBox(0F, 0F, 0F, 1, 16, 13);
      Door.setRotationPoint(6F, 0F, -6F);
      Door.setTextureSize(128, 64);
      Door.mirror = true;
      setRotation(Door, 0F, 0F, 0F);
      door_side1 = new ModelRenderer(this, 61, 0);
      door_side1.addBox(0F, 0F, 0F, 4, 16, 1);
      door_side1.setRotationPoint(2F, 0F, -7F);
      door_side1.setTextureSize(128, 64);
      door_side1.mirror = true;
      setRotation(door_side1, 0F, 0F, 0F);
      door_side2 = new ModelRenderer(this, 71, 0);
      door_side2.addBox(0F, 0F, 0F, 4, 16, 1);
      door_side2.setRotationPoint(2F, 0F, 6F);
      door_side2.setTextureSize(128, 64);
      door_side2.mirror = true;
      setRotation(door_side2, 0F, 0F, 0F);
      door_topside1 = new ModelRenderer(this, 0, 46);
      door_topside1.addBox(0F, 0F, 0F, 4, 1, 12);
      door_topside1.setRotationPoint(2F, 0F, -6F);
      door_topside1.setTextureSize(128, 64);
      door_topside1.mirror = true;
      setRotation(door_topside1, 0F, 0F, 0F);
      door_topside2 = new ModelRenderer(this, 0, 33);
      door_topside2.addBox(0F, 0F, 0F, 4, 1, 12);
      door_topside2.setRotationPoint(2F, 15F, -5.8F);
      door_topside2.setTextureSize(128, 64);
      door_topside2.mirror = true;
      setRotation(door_topside2, 0F, 0F, 0F);
      Book = new ModelRenderer(this, 61, 23);
      Book.addBox(0F, 0F, 0F, 5, 1, 3);
      Book.setRotationPoint(-2F, -1F, 3.5F);
      Book.setTextureSize(128, 64);
      Book.mirror = true;
      setRotation(Book, 0F, 0.4833219F, 0F);
  }
 
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.render(entity, 0.0F, f1, f2, f3, f4, f5);
    setRotationAngles(0.0F, f1, f2, f3, f4, f5);
    setRotation(Door, 0.0F, f, 0.0F);
   
    Table.render(f5);
    Door.render(f5);
    door_side1.render(f5);
    door_side2.render(f5);
    door_topside1.render(f5);
    door_topside2.render(f5);
    Book.render(f5);
  }
 
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
 
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.setRotationAngles(f, f1, f2, f3, f4, f5);
  }

}
TOP

Related Classes of lukeperkin.craftingtableii.ModelCraftingTableII

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.