mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Add resources for Friction Boots
This commit is contained in:
1 parent
2085220637
commit
3803bfde24
2 files changed
+79
No files matched your search
@@ -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 |
Reference in new issue
Block a user