From 3803bfde24f2e763361bba5bb424db07c10096cd Mon Sep 17 00:00:00 2001 From: Aidan Brady Date: Sat, 1 Feb 2014 15:04:37 -0500 Subject: [PATCH] Add resources for Friction Boots --- .../client/model/ModelFrictionBoots.java | 79 ++++++++++++++++++ .../assets/mekanism/render/FrictionBoots.png | Bin 0 -> 3130 bytes 2 files changed, 79 insertions(+) create mode 100644 common/mekanism/client/model/ModelFrictionBoots.java create mode 100644 resources/assets/mekanism/render/FrictionBoots.png diff --git a/common/mekanism/client/model/ModelFrictionBoots.java b/common/mekanism/client/model/ModelFrictionBoots.java new file mode 100644 index 000000000..631877ecf --- /dev/null +++ b/common/mekanism/client/model/ModelFrictionBoots.java @@ -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; + } +} diff --git a/resources/assets/mekanism/render/FrictionBoots.png b/resources/assets/mekanism/render/FrictionBoots.png new file mode 100644 index 0000000000000000000000000000000000000000..07f89121f17f6474246bc5af6984c85645aae16d GIT binary patch literal 3130 zcmaKuW!(k)$rAThe7VWU$@1{m}Rkr1T>H*$o8G&m%rLj)Pp9nv8=LP`V# zZV87{KfeFK{d%2q-jACaX4h1|Ha98pbrxVkBd$T_t!w=p z0P61lOwjLD>I49}i5m=d|Gul2pVxC&FK=!=7>wK7*UQE2sWSip3m9{Rh50s<3V!(* zYJf(j8hDv8l5(3t&8P8}cLK#awN3y|F zkPu#ojvYK(4KDPUX~F*(xvZa6-Kspo)QypJkW!}WN}I|eDa)W-bl=1Kd-_&4#MDvb zeBOYTw9bj=`2{ZlI1N=+7QWL#(gp|urYJ~3hfz+41V{80%?>o{AptUipu;cuo&hP6 z0jLKhK#PI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