Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package be.dow1t.craftafus.client.model;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- import net.minecraft.util.MathHelper;
- public class ModelArakne
- extends ModelBase
- {
- ModelRenderer a = new ModelRenderer(this, 0, 0);
- ModelRenderer b;
- ModelRenderer c;
- ModelRenderer d;
- ModelRenderer e;
- ModelRenderer f;
- ModelRenderer g;
- ModelRenderer h;
- ModelRenderer i;
- ModelRenderer j;
- ModelRenderer k;
- ModelRenderer l;
- ModelRenderer m;
- ModelRenderer n;
- ModelRenderer o;
- public ModelArakne()
- {
- this.textureWidth = 64;
- this.textureHeight = 32;
- this.a.addBox(-3.5F, -3.5F, -3.5F, 7, 7, 7);
- this.a.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.a.setTextureSize(64, 32);
- this.a.mirror = true;
- setRotation(this.a, 0.0F, 0.0F, 0.0F);
- this.b = new ModelRenderer(this, 0, 14);
- this.b.addBox(0.0F, 0.0F, -1.0F, 3, 2, 2);
- this.b.setRotationPoint(2.0F, 22.0F, -2.0F);
- this.b.setTextureSize(64, 32);
- this.b.mirror = true;
- setRotation(this.b, 0.0F, 0.4089647F, 0.0F);
- this.c = new ModelRenderer(this, 0, 14);
- this.c.addBox(0.0F, 0.0F, -1.0F, 3, 2, 2);
- this.c.setRotationPoint(2.0F, 22.0F, 2.0F);
- this.c.setTextureSize(64, 32);
- this.c.mirror = true;
- setRotation(this.c, 0.0F, -0.5948578F, 0.0F);
- this.d = new ModelRenderer(this, 0, 18);
- this.d.addBox(-3.0F, 0.0F, -1.0F, 3, 2, 2);
- this.d.setRotationPoint(-2.0F, 22.0F, 2.0F);
- this.d.setTextureSize(64, 32);
- this.d.mirror = true;
- setRotation(this.d, 0.0F, 0.3346075F, 0.0F);
- this.e = new ModelRenderer(this, 0, 18);
- this.e.addBox(-3.0F, 0.0F, -1.0F, 3, 2, 2);
- this.e.setRotationPoint(-2.0F, 22.0F, -2.0F);
- this.e.setTextureSize(64, 32);
- this.e.mirror = true;
- setRotation(this.e, 0.0F, -0.5402259F, 0.0F);
- this.f = new ModelRenderer(this, 10, 14);
- this.f.addBox(-2.5F, -2.5F, -5.0F, 5, 3, 1);
- this.f.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.f.setTextureSize(64, 32);
- this.f.mirror = true;
- setRotation(this.f, 0.0F, 0.0F, 0.0F);
- this.g = new ModelRenderer(this, 22, 14);
- this.g.addBox(-2.5F, 1.0F, -4.5F, 1, 2, 1);
- this.g.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.g.setTextureSize(64, 32);
- this.g.mirror = true;
- setRotation(this.g, 0.0F, 0.0F, 0.1047198F);
- this.h = new ModelRenderer(this, 22, 14);
- this.h.addBox(1.5F, 1.0F, -4.5F, 1, 2, 1);
- this.h.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.h.setTextureSize(64, 32);
- this.h.mirror = true;
- setRotation(this.h, 0.0F, 0.0F, -0.1047198F);
- this.i = new ModelRenderer(this, 22, 14);
- this.i.addBox(-0.5F, 1.0F, -4.5F, 1, 2, 1);
- this.i.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.i.setTextureSize(64, 32);
- this.i.mirror = true;
- setRotation(this.i, 0.0F, 0.0F, 0.0F);
- this.j = new ModelRenderer(this, 39, 22);
- this.j.addBox(-3.0F, -4.0F, -3.0F, 6, 1, 6);
- this.j.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.j.setTextureSize(64, 32);
- this.j.mirror = true;
- setRotation(this.j, 0.0F, 0.0F, 0.0F);
- this.k = new ModelRenderer(this, 49, 0);
- this.k.addBox(-3.0F, -3.0F, 3.0F, 6, 6, 1);
- this.k.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.k.setTextureSize(64, 32);
- this.k.mirror = true;
- setRotation(this.k, 0.0F, 0.0F, 0.0F);
- this.l = new ModelRenderer(this, 34, 0);
- this.l.addBox(3.0F, -3.0F, -3.0F, 1, 6, 6);
- this.l.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.l.setTextureSize(64, 32);
- this.l.mirror = true;
- setRotation(this.l, 0.0F, 0.0F, 0.0F);
- this.m = new ModelRenderer(this, 34, 0);
- this.m.addBox(-4.0F, -3.0F, -3.0F, 1, 6, 6);
- this.m.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.m.setTextureSize(64, 32);
- this.m.mirror = true;
- setRotation(this.m, 0.0F, 0.0F, 0.0F);
- this.n = new ModelRenderer(this, 39, 13);
- this.n.addBox(-3.0F, 3.0F, -3.0F, 6, 1, 6);
- this.n.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.n.setTextureSize(64, 32);
- this.n.mirror = true;
- setRotation(this.n, 0.0F, 0.0F, 0.0F);
- this.o = new ModelRenderer(this, 49, 0);
- this.o.addBox(-3.0F, -3.0F, -4.0F, 6, 6, 1);
- this.o.setRotationPoint(0.0F, 17.0F, 0.0F);
- this.o.setTextureSize(64, 32);
- this.o.mirror = true;
- setRotation(this.o, 0.0F, 0.0F, 0.0F);
- }
- public void render(Entity paramEntity, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6)
- {
- super.render(paramEntity, paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6);
- setRotationAngles(paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6, paramEntity);
- this.a.render(paramFloat6);
- this.b.render(paramFloat6);
- this.c.render(paramFloat6);
- this.d.render(paramFloat6);
- this.e.render(paramFloat6);
- this.f.render(paramFloat6);
- this.g.render(paramFloat6);
- this.h.render(paramFloat6);
- this.i.render(paramFloat6);
- this.j.render(paramFloat6);
- this.k.render(paramFloat6);
- this.l.render(paramFloat6);
- this.m.render(paramFloat6);
- this.n.render(paramFloat6);
- this.o.render(paramFloat6);
- }
- private void setRotation(ModelRenderer paramModelRenderer, float paramFloat1, float paramFloat2, float paramFloat3)
- {
- paramModelRenderer.rotateAngleX = paramFloat1;
- paramModelRenderer.rotateAngleY = paramFloat2;
- paramModelRenderer.rotateAngleZ = paramFloat3;
- }
- public void setRotationAngles(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6, Entity paramEntity)
- {
- super.setRotationAngles(paramFloat1, paramFloat2, paramFloat3, paramFloat4, paramFloat5, paramFloat6, paramEntity);
- this.b.offsetZ = (MathHelper.cos(paramFloat1 * 1.9F + 3.1415927F) * 0.5F * paramFloat2 * 0.4F);
- this.c.offsetZ = (MathHelper.cos(paramFloat1 * 1.9F + 3.1415927F) * -0.5F * paramFloat2 * 0.4F);
- this.d.offsetZ = (MathHelper.cos(paramFloat1 * 1.9F + 3.1415927F) * -0.5F * paramFloat2 * 0.4F);
- this.e.offsetZ = (MathHelper.cos(paramFloat1 * 1.9F + 3.1415927F) * 0.5F * paramFloat2 * 0.4F);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement