Merge branch 'development' of https://github.com/aidancbrady/Mekanism into development

This commit is contained in:
Aidan C. Brady 2014-02-01 15:15:37 -05:00
commit c3a1b6b3c5
2 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,79 @@
package mekanism.client.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelFrictionBoots extends ModelBase
{
ModelRenderer SpringL;
ModelRenderer SpringR;
ModelRenderer BraceL;
ModelRenderer BraceR;
ModelRenderer SupportL;
ModelRenderer SupportR;
public ModelFrictionBoots()
{
textureWidth = 64;
textureHeight = 32;
SpringL = new ModelRenderer(this, 8, 0);
SpringL.addBox(1.5F, 18F, 0F, 1, 6, 1);
SpringL.setRotationPoint(0F, 0F, 0F);
SpringL.setTextureSize(64, 32);
SpringL.mirror = true;
setRotation(SpringL, 0.1047198F, 0F, 0F);
SpringR.mirror = true;
SpringR = new ModelRenderer(this, 8, 0);
SpringR.addBox(-2.5F, 18F, 0F, 1, 6, 1);
SpringR.setRotationPoint(0F, 0F, 0F);
SpringR.setTextureSize(64, 32);
SpringR.mirror = true;
setRotation(SpringR, 0.1047198F, 0F, 0F);
SpringR.mirror = false;
BraceL = new ModelRenderer(this, 12, 0);
BraceL.addBox(0.2F, 18F, -0.8F, 4, 2, 3);
BraceL.setRotationPoint(0F, 0F, 0F);
BraceL.setTextureSize(64, 32);
BraceL.mirror = true;
setRotation(BraceL, 0F, 0F, 0F);
BraceR = new ModelRenderer(this, 12, 0);
BraceR.addBox(-4.2F, 18F, -0.8F, 4, 2, 3);
BraceR.setRotationPoint(0F, 0F, 0F);
BraceR.setTextureSize(64, 32);
BraceR.mirror = true;
setRotation(BraceR, 0F, 0F, 0F);
SupportL = new ModelRenderer(this, 0, 0);
SupportL.addBox(1F, 16.5F, -4.2F, 2, 4, 2);
SupportL.setRotationPoint(0F, 0F, 0F);
SupportL.setTextureSize(64, 32);
SupportL.mirror = true;
setRotation(SupportL, 0.296706F, 0F, 0F);
SupportR.mirror = true;
SupportR = new ModelRenderer(this, 0, 0);
SupportR.addBox(-3F, 16.5F, -4.2F, 2, 4, 2);
SupportR.setRotationPoint(0F, 0F, 0F);
SupportR.setTextureSize(64, 32);
SupportR.mirror = true;
setRotation(SupportR, 0.296706F, 0F, 0F);
SupportR.mirror = false;
}
public void render(float size)
{
SpringL.render(size);
SpringR.render(size);
BraceL.render(size);
BraceR.render(size);
SupportL.render(size);
SupportR.render(size);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB