summaryrefslogtreecommitdiff
path: root/ihl/processing/metallurgy/RollingMachinePart2Model.java
blob: b4bda67d11677b0c13edfc7a2dd675392c57b79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package ihl.processing.metallurgy;


import net.minecraft.client.model.ModelBase;
import ihl.model.IHLModelRenderer;

public class RollingMachinePart2Model extends ModelBase
{
  //fields
    IHLModelRenderer Base;
  
  public RollingMachinePart2Model()
  {
    textureWidth = 64;
    textureHeight = 32;
    setTextureOffset("Base.Shape6", 0, 0);
    setTextureOffset("Base.Shape16", 0, 0);
    setTextureOffset("Base.Shape5", 0, 0);
    setTextureOffset("Base.Shape8", 0, 0);
    setTextureOffset("Base.Shape11", 0, 0);
    setTextureOffset("Base.Shape9", 0, 0);
    
    Base = new IHLModelRenderer(this, "Base");
    Base.setRotationPoint(0F, 16F, 0F);
    setRotation(Base, 0F, 0F, 0F);
    Base.mirror = true;
      Base.addBox("Shape6", -8F, 7F, -8F, 16, 1, 16);
      Base.addBox("Shape16", -3F, -7F, 5F, 6, 14, 1);
      Base.addBox("Shape5", 2F, -1F, -8F, 6, 1, 13);
      Base.addBox("Shape8", -8F, -1F, -8F, 6, 1, 13);
      Base.addBox("Shape11", 3F, 0F, -8F, 4, 7, 1);
      Base.addBox("Shape9", -7F, 0F, -8F, 4, 7, 1);
  }
  
  private void setRotation(IHLModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }

}