public ModelMinecart() { SideModels = new ModelRenderer[7]; SideModels[0] = new ModelRenderer(this, 0, 10); SideModels[1] = new ModelRenderer(this, 0, 0); SideModels[2] = new ModelRenderer(this, 0, 0); SideModels[3] = new ModelRenderer(this, 0, 0); SideModels[4] = new ModelRenderer(this, 0, 0); SideModels[5] = new ModelRenderer(this, 44, 10); sbyte byte0 = 20; sbyte byte1 = 8; sbyte byte2 = 16; int i = 4; SideModels[0].AddBox(-byte0 / 2, -byte2 / 2, -1F, byte0, byte2, 2, 0.0F); SideModels[0].SetRotationPoint(0.0F, i, 0.0F); SideModels[5].AddBox(-byte0 / 2 + 1, -byte2 / 2 + 1, -1F, byte0 - 2, byte2 - 2, 1, 0.0F); SideModels[5].SetRotationPoint(0.0F, i, 0.0F); SideModels[1].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); SideModels[1].SetRotationPoint(-byte0 / 2 + 1, i, 0.0F); SideModels[2].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); SideModels[2].SetRotationPoint(byte0 / 2 - 1, i, 0.0F); SideModels[3].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); SideModels[3].SetRotationPoint(0.0F, i, -byte2 / 2 + 1); SideModels[4].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); SideModels[4].SetRotationPoint(0.0F, i, byte2 / 2 - 1); SideModels[0].RotateAngleX = ((float)Math.PI / 2F); SideModels[1].RotateAngleY = ((float)Math.PI * 3F / 2F); SideModels[2].RotateAngleY = ((float)Math.PI / 2F); SideModels[3].RotateAngleY = (float)Math.PI; SideModels[5].RotateAngleX = -((float)Math.PI / 2F); }
public ModelIronGolem(float par1, float par2) { int c = 200; int c1 = 200; Field_48234_a = (new ModelRenderer(this)).SetTextureSize(c, c1); Field_48234_a.SetRotationPoint(0.0F, 0.0F + par2, -2F); Field_48234_a.SetTextureOffset(0, 0).AddBox(-4F, -12F, -5.5F, 8, 10, 8, par1); Field_48234_a.SetTextureOffset(24, 0).AddBox(-1F, -5F, -7.5F, 2, 4, 2, par1); Field_48232_b = (new ModelRenderer(this)).SetTextureSize(c, c1); Field_48232_b.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); Field_48232_b.SetTextureOffset(0, 40).AddBox(-9F, -2F, -6F, 18, 12, 11, par1); Field_48232_b.SetTextureOffset(0, 70).AddBox(-4.5F, 10F, -3F, 9, 5, 6, par1 + 0.5F); Field_48233_c = (new ModelRenderer(this)).SetTextureSize(c, c1); Field_48233_c.SetRotationPoint(0.0F, -7F, 0.0F); Field_48233_c.SetTextureOffset(60, 21).AddBox(-13F, -2.5F, -3F, 4, 30, 6, par1); Field_48230_d = (new ModelRenderer(this)).SetTextureSize(c, c1); Field_48230_d.SetRotationPoint(0.0F, -7F, 0.0F); Field_48230_d.SetTextureOffset(60, 58).AddBox(9F, -2.5F, -3F, 4, 30, 6, par1); Field_48231_e = (new ModelRenderer(this, 0, 22)).SetTextureSize(c, c1); Field_48231_e.SetRotationPoint(-4F, 18F + par2, 0.0F); Field_48231_e.SetTextureOffset(37, 0).AddBox(-3.5F, -3F, -3F, 6, 16, 5, par1); Field_48229_f = (new ModelRenderer(this, 0, 22)).SetTextureSize(c, c1); Field_48229_f.Mirror = true; Field_48229_f.SetTextureOffset(60, 0).SetRotationPoint(5F, 18F + par2, 0.0F); Field_48229_f.AddBox(-3.5F, -3F, -3F, 6, 16, 5, par1); }
public ModelBiped(float par1, float par2) { HeldItemLeft = 0; HeldItemRight = 0; IsSneak = false; AimedBow = false; BipedCloak = new ModelRenderer(this, 0, 0); BipedCloak.AddBox(-5F, 0.0F, -1F, 10, 16, 1, par1); BipedEars = new ModelRenderer(this, 24, 0); BipedEars.AddBox(-3F, -6F, -1F, 6, 6, 1, par1); BipedHead = new ModelRenderer(this, 0, 0); BipedHead.AddBox(-4F, -8F, -4F, 8, 8, 8, par1); BipedHead.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); BipedHeadwear = new ModelRenderer(this, 32, 0); BipedHeadwear.AddBox(-4F, -8F, -4F, 8, 8, 8, par1 + 0.5F); BipedHeadwear.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); BipedBody = new ModelRenderer(this, 16, 16); BipedBody.AddBox(-4F, 0.0F, -2F, 8, 12, 4, par1); BipedBody.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); BipedRightArm = new ModelRenderer(this, 40, 16); BipedRightArm.AddBox(-3F, -2F, -2F, 4, 12, 4, par1); BipedRightArm.SetRotationPoint(-5F, 2.0F + par2, 0.0F); BipedLeftArm = new ModelRenderer(this, 40, 16); BipedLeftArm.Mirror = true; BipedLeftArm.AddBox(-1F, -2F, -2F, 4, 12, 4, par1); BipedLeftArm.SetRotationPoint(5F, 2.0F + par2, 0.0F); BipedRightLeg = new ModelRenderer(this, 0, 16); BipedRightLeg.AddBox(-2F, 0.0F, -2F, 4, 12, 4, par1); BipedRightLeg.SetRotationPoint(-2F, 12F + par2, 0.0F); BipedLeftLeg = new ModelRenderer(this, 0, 16); BipedLeftLeg.Mirror = true; BipedLeftLeg.AddBox(-2F, 0.0F, -2F, 4, 12, 4, par1); BipedLeftLeg.SetRotationPoint(2.0F, 12F + par2, 0.0F); }
public ModelCreeper(float par1) { int i = 4; Head = new ModelRenderer(this, 0, 0); Head.AddBox(-4F, -8F, -4F, 8, 8, 8, par1); Head.SetRotationPoint(0.0F, i, 0.0F); Field_1270_b = new ModelRenderer(this, 32, 0); Field_1270_b.AddBox(-4F, -8F, -4F, 8, 8, 8, par1 + 0.5F); Field_1270_b.SetRotationPoint(0.0F, i, 0.0F); Body = new ModelRenderer(this, 16, 16); Body.AddBox(-4F, 0.0F, -2F, 8, 12, 4, par1); Body.SetRotationPoint(0.0F, i, 0.0F); Leg1 = new ModelRenderer(this, 0, 16); Leg1.AddBox(-2F, 0.0F, -2F, 4, 6, 4, par1); Leg1.SetRotationPoint(-2F, 12 + i, 4F); Leg2 = new ModelRenderer(this, 0, 16); Leg2.AddBox(-2F, 0.0F, -2F, 4, 6, 4, par1); Leg2.SetRotationPoint(2.0F, 12 + i, 4F); Leg3 = new ModelRenderer(this, 0, 16); Leg3.AddBox(-2F, 0.0F, -2F, 4, 6, 4, par1); Leg3.SetRotationPoint(-2F, 12 + i, -4F); Leg4 = new ModelRenderer(this, 0, 16); Leg4.AddBox(-2F, 0.0F, -2F, 4, 6, 4, par1); Leg4.SetRotationPoint(2.0F, 12 + i, -4F); }
public ModelWolf() { float f = 0.0F; float f1 = 13.5F; WolfHeadMain = new ModelRenderer(this, 0, 0); WolfHeadMain.AddBox(-3F, -3F, -2F, 6, 6, 4, f); WolfHeadMain.SetRotationPoint(-1F, f1, -7F); WolfBody = new ModelRenderer(this, 18, 14); WolfBody.AddBox(-4F, -2F, -3F, 6, 9, 6, f); WolfBody.SetRotationPoint(0.0F, 14F, 2.0F); WolfMane = new ModelRenderer(this, 21, 0); WolfMane.AddBox(-4F, -3F, -3F, 8, 6, 7, f); WolfMane.SetRotationPoint(-1F, 14F, 2.0F); WolfLeg1 = new ModelRenderer(this, 0, 18); WolfLeg1.AddBox(-1F, 0.0F, -1F, 2, 8, 2, f); WolfLeg1.SetRotationPoint(-2.5F, 16F, 7F); WolfLeg2 = new ModelRenderer(this, 0, 18); WolfLeg2.AddBox(-1F, 0.0F, -1F, 2, 8, 2, f); WolfLeg2.SetRotationPoint(0.5F, 16F, 7F); WolfLeg3 = new ModelRenderer(this, 0, 18); WolfLeg3.AddBox(-1F, 0.0F, -1F, 2, 8, 2, f); WolfLeg3.SetRotationPoint(-2.5F, 16F, -4F); WolfLeg4 = new ModelRenderer(this, 0, 18); WolfLeg4.AddBox(-1F, 0.0F, -1F, 2, 8, 2, f); WolfLeg4.SetRotationPoint(0.5F, 16F, -4F); WolfTail = new ModelRenderer(this, 9, 18); WolfTail.AddBox(-1F, 0.0F, -1F, 2, 8, 2, f); WolfTail.SetRotationPoint(-1F, 12F, 8F); WolfHeadMain.SetTextureOffset(16, 14).AddBox(-3F, -5F, 0.0F, 2, 2, 1, f); WolfHeadMain.SetTextureOffset(16, 14).AddBox(1.0F, -5F, 0.0F, 2, 2, 1, f); WolfHeadMain.SetTextureOffset(0, 10).AddBox(-1.5F, 0.0F, -5F, 3, 3, 4, f); }
public ModelBoat() { BoatSides = new ModelRenderer[5]; BoatSides[0] = new ModelRenderer(this, 0, 8); BoatSides[1] = new ModelRenderer(this, 0, 0); BoatSides[2] = new ModelRenderer(this, 0, 0); BoatSides[3] = new ModelRenderer(this, 0, 0); BoatSides[4] = new ModelRenderer(this, 0, 0); sbyte byte0 = 24; sbyte byte1 = 6; sbyte byte2 = 20; int i = 4; BoatSides[0].AddBox(-byte0 / 2, -byte2 / 2 + 2, -3F, byte0, byte2 - 4, 4, 0.0F); BoatSides[0].SetRotationPoint(0.0F, i, 0.0F); BoatSides[1].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); BoatSides[1].SetRotationPoint(-byte0 / 2 + 1, i, 0.0F); BoatSides[2].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); BoatSides[2].SetRotationPoint(byte0 / 2 - 1, i, 0.0F); BoatSides[3].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); BoatSides[3].SetRotationPoint(0.0F, i, -byte2 / 2 + 1); BoatSides[4].AddBox(-byte0 / 2 + 2, -byte1 - 1, -1F, byte0 - 4, byte1, 2, 0.0F); BoatSides[4].SetRotationPoint(0.0F, i, byte2 / 2 - 1); BoatSides[0].RotateAngleX = ((float)Math.PI / 2F); BoatSides[1].RotateAngleY = ((float)Math.PI * 3F / 2F); BoatSides[2].RotateAngleY = ((float)Math.PI / 2F); BoatSides[3].RotateAngleY = (float)Math.PI; }
public ModelVillager(float par1, float par2) { sbyte byte0 = 64; sbyte byte1 = 64; Field_40340_a = (new ModelRenderer(this)).SetTextureSize(byte0, byte1); Field_40340_a.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); Field_40340_a.SetTextureOffset(0, 0).AddBox(-4F, -10F, -4F, 8, 10, 8, par1); Field_40340_a.SetTextureOffset(24, 0).AddBox(-1F, -3F, -6F, 2, 4, 2, par1); Field_40338_b = (new ModelRenderer(this)).SetTextureSize(byte0, byte1); Field_40338_b.SetRotationPoint(0.0F, 0.0F + par2, 0.0F); Field_40338_b.SetTextureOffset(16, 20).AddBox(-4F, 0.0F, -3F, 8, 12, 6, par1); Field_40338_b.SetTextureOffset(0, 38).AddBox(-4F, 0.0F, -3F, 8, 18, 6, par1 + 0.5F); Field_40339_c = (new ModelRenderer(this)).SetTextureSize(byte0, byte1); Field_40339_c.SetRotationPoint(0.0F, 0.0F + par2 + 2.0F, 0.0F); Field_40339_c.SetTextureOffset(44, 22).AddBox(-8F, -2F, -2F, 4, 8, 4, par1); Field_40339_c.SetTextureOffset(44, 22).AddBox(4F, -2F, -2F, 4, 8, 4, par1); Field_40339_c.SetTextureOffset(40, 38).AddBox(-4F, 2.0F, -2F, 8, 4, 4, par1); Field_40336_d = (new ModelRenderer(this, 0, 22)).SetTextureSize(byte0, byte1); Field_40336_d.SetRotationPoint(-2F, 12F + par2, 0.0F); Field_40336_d.AddBox(-2F, 0.0F, -2F, 4, 12, 4, par1); Field_40337_e = (new ModelRenderer(this, 0, 22)).SetTextureSize(byte0, byte1); Field_40337_e.Mirror = true; Field_40337_e.SetRotationPoint(2.0F, 12F + par2, 0.0F); Field_40337_e.AddBox(-2F, 0.0F, -2F, 4, 12, 4, par1); }
public ModelChicken() { int i = 16; Head = new ModelRenderer(this, 0, 0); Head.AddBox(-2F, -6F, -2F, 4, 6, 3, 0.0F); Head.SetRotationPoint(0.0F, -1 + i, -4F); Bill = new ModelRenderer(this, 14, 0); Bill.AddBox(-2F, -4F, -4F, 4, 2, 2, 0.0F); Bill.SetRotationPoint(0.0F, -1 + i, -4F); Chin = new ModelRenderer(this, 14, 4); Chin.AddBox(-1F, -2F, -3F, 2, 2, 2, 0.0F); Chin.SetRotationPoint(0.0F, -1 + i, -4F); Body = new ModelRenderer(this, 0, 9); Body.AddBox(-3F, -4F, -3F, 6, 8, 6, 0.0F); Body.SetRotationPoint(0.0F, i, 0.0F); RightLeg = new ModelRenderer(this, 26, 0); RightLeg.AddBox(-1F, 0.0F, -3F, 3, 5, 3); RightLeg.SetRotationPoint(-2F, 3 + i, 1.0F); LeftLeg = new ModelRenderer(this, 26, 0); LeftLeg.AddBox(-1F, 0.0F, -3F, 3, 5, 3); LeftLeg.SetRotationPoint(1.0F, 3 + i, 1.0F); RightWing = new ModelRenderer(this, 24, 13); RightWing.AddBox(0.0F, 0.0F, -3F, 1, 4, 6); RightWing.SetRotationPoint(-4F, -3 + i, 0.0F); LeftWing = new ModelRenderer(this, 24, 13); LeftWing.AddBox(-1F, 0.0F, -3F, 1, 4, 6); LeftWing.SetRotationPoint(4F, -3 + i, 0.0F); }
public ModelSilverfish() { Field_35399_c = new float[7]; SilverfishBodyParts = new ModelRenderer[7]; float f = -3.5F; for (int i = 0; i < SilverfishBodyParts.Length; i++) { SilverfishBodyParts[i] = new ModelRenderer(this, SilverfishTexturePositions[i][0], SilverfishTexturePositions[i][1]); SilverfishBodyParts[i].AddBox((float)SilverfishBoxLength[i][0] * -0.5F, 0.0F, (float)SilverfishBoxLength[i][2] * -0.5F, SilverfishBoxLength[i][0], SilverfishBoxLength[i][1], SilverfishBoxLength[i][2]); SilverfishBodyParts[i].SetRotationPoint(0.0F, 24 - SilverfishBoxLength[i][1], f); Field_35399_c[i] = f; if (i < SilverfishBodyParts.Length - 1) { f += (float)(SilverfishBoxLength[i][2] + SilverfishBoxLength[i + 1][2]) * 0.5F; } } SilverfishWings = new ModelRenderer[3]; SilverfishWings[0] = new ModelRenderer(this, 20, 0); SilverfishWings[0].AddBox(-5F, 0.0F, (float)SilverfishBoxLength[2][2] * -0.5F, 10, 8, SilverfishBoxLength[2][2]); SilverfishWings[0].SetRotationPoint(0.0F, 16F, Field_35399_c[2]); SilverfishWings[1] = new ModelRenderer(this, 20, 11); SilverfishWings[1].AddBox(-3F, 0.0F, (float)SilverfishBoxLength[4][2] * -0.5F, 6, 4, SilverfishBoxLength[4][2]); SilverfishWings[1].SetRotationPoint(0.0F, 20F, Field_35399_c[4]); SilverfishWings[2] = new ModelRenderer(this, 20, 18); SilverfishWings[2].AddBox(-3F, 0.0F, (float)SilverfishBoxLength[4][2] * -0.5F, 6, 5, SilverfishBoxLength[1][2]); SilverfishWings[2].SetRotationPoint(0.0F, 19F, Field_35399_c[1]); }
/// <summary> /// Sets the current box's rotation points and rotation angles to another box. /// </summary> public virtual void AddChild(ModelRenderer par1ModelRenderer) { if (ChildModels == null) { ChildModels = new List <ModelRenderer>(); } ChildModels.Add(par1ModelRenderer); }
public ModelEnderCrystal(float par1) { Field_41058_h = new ModelRenderer(this, "glass"); Field_41058_h.SetTextureOffset(0, 0).AddBox(-4F, -4F, -4F, 8, 8, 8); Field_41057_g = new ModelRenderer(this, "cube"); Field_41057_g.SetTextureOffset(32, 0).AddBox(-4F, -4F, -4F, 8, 8, 8); Field_41059_i = new ModelRenderer(this, "base"); Field_41059_i.SetTextureOffset(0, 16).AddBox(-6F, 0.0F, -6F, 12, 4, 12); }
/// <summary> /// Sets the models various rotation angles. /// </summary> public override void SetRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6) { ModelRenderer[] amodelrenderer = SquidTentacles; int i = amodelrenderer.Length; for (int j = 0; j < i; j++) { ModelRenderer modelrenderer = amodelrenderer[j]; modelrenderer.RotateAngleX = par3; } }
public ModelBlaze() { Field_40323_a = new ModelRenderer[12]; for (int i = 0; i < Field_40323_a.Length; i++) { Field_40323_a[i] = new ModelRenderer(this, 0, 16); Field_40323_a[i].AddBox(0.0F, 0.0F, 0.0F, 2, 8, 2); } Field_40322_b = new ModelRenderer(this, 0, 0); Field_40322_b.AddBox(-4F, -4F, -4F, 8, 8, 8); }
public ModelBook() { CoverRight = (new ModelRenderer(this)).SetTextureOffset(0, 0).AddBox(-6F, -5F, 0.0F, 6, 10, 0); CoverLeft = (new ModelRenderer(this)).SetTextureOffset(16, 0).AddBox(0.0F, -5F, 0.0F, 6, 10, 0); BookSpine = (new ModelRenderer(this)).SetTextureOffset(12, 0).AddBox(-1F, -5F, 0.0F, 2, 10, 0); PagesRight = (new ModelRenderer(this)).SetTextureOffset(0, 10).AddBox(0.0F, -4F, -0.99F, 5, 8, 1); PagesLeft = (new ModelRenderer(this)).SetTextureOffset(12, 10).AddBox(0.0F, -4F, -0.01F, 5, 8, 1); FlippingPageRight = (new ModelRenderer(this)).SetTextureOffset(24, 10).AddBox(0.0F, -4F, 0.0F, 5, 8, 0); FlippingPageLeft = (new ModelRenderer(this)).SetTextureOffset(24, 10).AddBox(0.0F, -4F, 0.0F, 5, 8, 0); CoverRight.SetRotationPoint(0.0F, 0.0F, -1F); CoverLeft.SetRotationPoint(0.0F, 0.0F, 1.0F); BookSpine.RotateAngleY = ((float)Math.PI / 2F); }
/// <summary> /// Sets the models various rotation angles then renders the model. /// </summary> public override void Render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) { SetRotationAngles(par2, par3, par4, par5, par6, par7); //GL.PushMatrix(); //GL.Translate(0.0F, 0.6F, 0.0F); Body.Render(par7); ModelRenderer[] amodelrenderer = Tentacles; int i = amodelrenderer.Length; for (int j = 0; j < i; j++) { ModelRenderer modelrenderer = amodelrenderer[j]; modelrenderer.Render(par7); } //GL.PopMatrix(); }
public ModelSnowMan() { float f = 4F; float f1 = 0.0F; Field_40305_c = (new ModelRenderer(this, 0, 0)).SetTextureSize(64, 64); Field_40305_c.AddBox(-4F, -8F, -4F, 8, 8, 8, f1 - 0.5F); Field_40305_c.SetRotationPoint(0.0F, 0.0F + f, 0.0F); Field_40302_d = (new ModelRenderer(this, 32, 0)).SetTextureSize(64, 64); Field_40302_d.AddBox(-1F, 0.0F, -1F, 12, 2, 2, f1 - 0.5F); Field_40302_d.SetRotationPoint(0.0F, (0.0F + f + 9F) - 7F, 0.0F); Field_40303_e = (new ModelRenderer(this, 32, 0)).SetTextureSize(64, 64); Field_40303_e.AddBox(-1F, 0.0F, -1F, 12, 2, 2, f1 - 0.5F); Field_40303_e.SetRotationPoint(0.0F, (0.0F + f + 9F) - 7F, 0.0F); Field_40306_a = (new ModelRenderer(this, 0, 16)).SetTextureSize(64, 64); Field_40306_a.AddBox(-5F, -10F, -5F, 10, 10, 10, f1 - 0.5F); Field_40306_a.SetRotationPoint(0.0F, 0.0F + f + 9F, 0.0F); Field_40304_b = (new ModelRenderer(this, 0, 36)).SetTextureSize(64, 64); Field_40304_b.AddBox(-6F, -12F, -6F, 12, 12, 12, f1 - 0.5F); Field_40304_b.SetRotationPoint(0.0F, 0.0F + f + 20F, 0.0F); }
public ModelGhast() { Tentacles = new ModelRenderer[9]; sbyte byte0 = -16; Body = new ModelRenderer(this, 0, 0); Body.AddBox(-8F, -8F, -8F, 16, 16, 16); Body.RotationPointY += 24 + byte0; Random random = new Random(1660); for (int i = 0; i < Tentacles.Length; i++) { Tentacles[i] = new ModelRenderer(this, 0, 0); float f = (((((float)(i % 3) - (float)((i / 3) % 2) * 0.5F) + 0.25F) / 2.0F) * 2.0F - 1.0F) * 5F; float f1 = (((float)(i / 3) / 2.0F) * 2.0F - 1.0F) * 5F; int j = random.Next(7) + 8; Tentacles[i].AddBox(-1F, 0.0F, -1F, 2, j, 2); Tentacles[i].RotationPointX = f; Tentacles[i].RotationPointZ = f1; Tentacles[i].RotationPointY = 31 + byte0; } }
public ModelSpider() { float f = 0.0F; int i = 15; SpiderHead = new ModelRenderer(this, 32, 4); SpiderHead.AddBox(-4F, -4F, -8F, 8, 8, 8, f); SpiderHead.SetRotationPoint(0.0F, i, -3F); SpiderNeck = new ModelRenderer(this, 0, 0); SpiderNeck.AddBox(-3F, -3F, -3F, 6, 6, 6, f); SpiderNeck.SetRotationPoint(0.0F, i, 0.0F); SpiderBody = new ModelRenderer(this, 0, 12); SpiderBody.AddBox(-5F, -4F, -6F, 10, 8, 12, f); SpiderBody.SetRotationPoint(0.0F, i, 9F); SpiderLeg1 = new ModelRenderer(this, 18, 0); SpiderLeg1.AddBox(-15F, -1F, -1F, 16, 2, 2, f); SpiderLeg1.SetRotationPoint(-4F, i, 2.0F); SpiderLeg2 = new ModelRenderer(this, 18, 0); SpiderLeg2.AddBox(-1F, -1F, -1F, 16, 2, 2, f); SpiderLeg2.SetRotationPoint(4F, i, 2.0F); SpiderLeg3 = new ModelRenderer(this, 18, 0); SpiderLeg3.AddBox(-15F, -1F, -1F, 16, 2, 2, f); SpiderLeg3.SetRotationPoint(-4F, i, 1.0F); SpiderLeg4 = new ModelRenderer(this, 18, 0); SpiderLeg4.AddBox(-1F, -1F, -1F, 16, 2, 2, f); SpiderLeg4.SetRotationPoint(4F, i, 1.0F); SpiderLeg5 = new ModelRenderer(this, 18, 0); SpiderLeg5.AddBox(-15F, -1F, -1F, 16, 2, 2, f); SpiderLeg5.SetRotationPoint(-4F, i, 0.0F); SpiderLeg6 = new ModelRenderer(this, 18, 0); SpiderLeg6.AddBox(-1F, -1F, -1F, 16, 2, 2, f); SpiderLeg6.SetRotationPoint(4F, i, 0.0F); SpiderLeg7 = new ModelRenderer(this, 18, 0); SpiderLeg7.AddBox(-15F, -1F, -1F, 16, 2, 2, f); SpiderLeg7.SetRotationPoint(-4F, i, -1F); SpiderLeg8 = new ModelRenderer(this, 18, 0); SpiderLeg8.AddBox(-1F, -1F, -1F, 16, 2, 2, f); SpiderLeg8.SetRotationPoint(4F, i, -1F); }
public ModelQuadruped(int par1, float par2) { Field_40331_g = 8F; Field_40332_n = 4F; Head = new ModelRenderer(this, 0, 0); Head.AddBox(-4F, -4F, -8F, 8, 8, 8, par2); Head.SetRotationPoint(0.0F, 18 - par1, -6F); Body = new ModelRenderer(this, 28, 8); Body.AddBox(-5F, -10F, -7F, 10, 16, 8, par2); Body.SetRotationPoint(0.0F, 17 - par1, 2.0F); Leg1 = new ModelRenderer(this, 0, 16); Leg1.AddBox(-2F, 0.0F, -2F, 4, par1, 4, par2); Leg1.SetRotationPoint(-3F, 24 - par1, 7F); Leg2 = new ModelRenderer(this, 0, 16); Leg2.AddBox(-2F, 0.0F, -2F, 4, par1, 4, par2); Leg2.SetRotationPoint(3F, 24 - par1, 7F); Leg3 = new ModelRenderer(this, 0, 16); Leg3.AddBox(-2F, 0.0F, -2F, 4, par1, 4, par2); Leg3.SetRotationPoint(-3F, 24 - par1, -5F); Leg4 = new ModelRenderer(this, 0, 16); Leg4.AddBox(-2F, 0.0F, -2F, 4, par1, 4, par2); Leg4.SetRotationPoint(3F, 24 - par1, -5F); }
public ModelSquid() { SquidTentacles = new ModelRenderer[8]; sbyte byte0 = -16; SquidBody = new ModelRenderer(this, 0, 0); SquidBody.AddBox(-6F, -8F, -6F, 12, 16, 12); SquidBody.RotationPointY += 24 + byte0; for (int i = 0; i < SquidTentacles.Length; i++) { SquidTentacles[i] = new ModelRenderer(this, 48, 0); double d = ((double)i * Math.PI * 2D) / (double)SquidTentacles.Length; float f = (float)Math.Cos(d) * 5F; float f1 = (float)Math.Sin(d) * 5F; SquidTentacles[i].AddBox(-1F, 0.0F, -1F, 2, 18, 2); SquidTentacles[i].RotationPointX = f; SquidTentacles[i].RotationPointZ = f1; SquidTentacles[i].RotationPointY = 31 + byte0; d = ((double)i * Math.PI * -2D) / (double)SquidTentacles.Length + (Math.PI / 2D); SquidTentacles[i].RotateAngleY = (float)d; } }
public ModelOcelot() { Field_48227_o = 1; SetTextureOffset("head.main", 0, 0); SetTextureOffset("head.nose", 0, 24); SetTextureOffset("head.ear1", 0, 10); SetTextureOffset("head.ear2", 6, 10); Field_48220_g = new ModelRenderer(this, "head"); Field_48220_g.AddBox("main", -2.5F, -2F, -3F, 5, 4, 5); Field_48220_g.AddBox("nose", -1.5F, 0.0F, -4F, 3, 2, 2); Field_48220_g.AddBox("ear1", -2F, -3F, 0.0F, 1, 1, 2); Field_48220_g.AddBox("ear2", 1.0F, -3F, 0.0F, 1, 1, 2); Field_48220_g.SetRotationPoint(0.0F, 15F, -9F); Field_48226_n = new ModelRenderer(this, 20, 0); Field_48226_n.AddBox(-2F, 3F, -8F, 4, 16, 6, 0.0F); Field_48226_n.SetRotationPoint(0.0F, 12F, -10F); Field_48222_e = new ModelRenderer(this, 0, 15); Field_48222_e.AddBox(-0.5F, 0.0F, 0.0F, 1, 8, 1); Field_48222_e.RotateAngleX = 0.9F; Field_48222_e.SetRotationPoint(0.0F, 15F, 8F); Field_48219_f = new ModelRenderer(this, 4, 15); Field_48219_f.AddBox(-0.5F, 0.0F, 0.0F, 1, 8, 1); Field_48219_f.SetRotationPoint(0.0F, 20F, 14F); Field_48225_a = new ModelRenderer(this, 8, 13); Field_48225_a.AddBox(-1F, 0.0F, 1.0F, 2, 6, 2); Field_48225_a.SetRotationPoint(1.1F, 18F, 5F); Field_48223_b = new ModelRenderer(this, 8, 13); Field_48223_b.AddBox(-1F, 0.0F, 1.0F, 2, 6, 2); Field_48223_b.SetRotationPoint(-1.1F, 18F, 5F); Field_48224_c = new ModelRenderer(this, 40, 0); Field_48224_c.AddBox(-1F, 0.0F, 0.0F, 2, 10, 2); Field_48224_c.SetRotationPoint(1.2F, 13.8F, -5F); Field_48221_d = new ModelRenderer(this, 40, 0); Field_48221_d.AddBox(-1F, 0.0F, 0.0F, 2, 10, 2); Field_48221_d.SetRotationPoint(-1.2F, 13.8F, -5F); }
public ModelDragon(float par1) { TextureWidth = 256; TextureHeight = 256; SetTextureOffset("body.body", 0, 0); SetTextureOffset("wing.skin", -56, 88); SetTextureOffset("wingtip.skin", -56, 144); SetTextureOffset("rearleg.main", 0, 0); SetTextureOffset("rearfoot.main", 112, 0); SetTextureOffset("rearlegtip.main", 196, 0); SetTextureOffset("head.upperhead", 112, 30); SetTextureOffset("wing.bone", 112, 88); SetTextureOffset("head.upperlip", 176, 44); SetTextureOffset("jaw.jaw", 176, 65); SetTextureOffset("frontleg.main", 112, 104); SetTextureOffset("wingtip.bone", 112, 136); SetTextureOffset("frontfoot.main", 144, 104); SetTextureOffset("neck.box", 192, 104); SetTextureOffset("frontlegtip.main", 226, 138); SetTextureOffset("body.scale", 220, 53); SetTextureOffset("head.scale", 0, 0); SetTextureOffset("neck.scale", 48, 0); SetTextureOffset("head.nostril", 112, 0); float f = -16F; Head = new ModelRenderer(this, "head"); Head.AddBox("upperlip", -6F, -1F, -8F + f, 12, 5, 16); Head.AddBox("upperhead", -8F, -8F, 6F + f, 16, 16, 16); Head.Mirror = true; Head.AddBox("scale", -5F, -12F, 12F + f, 2, 4, 6); Head.AddBox("nostril", -5F, -3F, -6F + f, 2, 2, 4); Head.Mirror = false; Head.AddBox("scale", 3F, -12F, 12F + f, 2, 4, 6); Head.AddBox("nostril", 3F, -3F, -6F + f, 2, 2, 4); Jaw = new ModelRenderer(this, "jaw"); Jaw.SetRotationPoint(0.0F, 4F, 8F + f); Jaw.AddBox("jaw", -6F, 0.0F, -16F, 12, 4, 16); Head.AddChild(Jaw); Neck = new ModelRenderer(this, "neck"); Neck.AddBox("box", -5F, -5F, -5F, 10, 10, 10); Neck.AddBox("scale", -1F, -9F, -3F, 2, 4, 6); Body = new ModelRenderer(this, "body"); Body.SetRotationPoint(0.0F, 4F, 8F); Body.AddBox("body", -12F, 0.0F, -16F, 24, 24, 64); Body.AddBox("scale", -1F, -6F, -10F, 2, 6, 12); Body.AddBox("scale", -1F, -6F, 10F, 2, 6, 12); Body.AddBox("scale", -1F, -6F, 30F, 2, 6, 12); Wing = new ModelRenderer(this, "wing"); Wing.SetRotationPoint(-12F, 5F, 2.0F); Wing.AddBox("bone", -56F, -4F, -4F, 56, 8, 8); Wing.AddBox("skin", -56F, 0.0F, 2.0F, 56, 0, 56); WingTip = new ModelRenderer(this, "wingtip"); WingTip.SetRotationPoint(-56F, 0.0F, 0.0F); WingTip.AddBox("bone", -56F, -2F, -2F, 56, 4, 4); WingTip.AddBox("skin", -56F, 0.0F, 2.0F, 56, 0, 56); Wing.AddChild(WingTip); FrontLeg = new ModelRenderer(this, "frontleg"); FrontLeg.SetRotationPoint(-12F, 20F, 2.0F); FrontLeg.AddBox("main", -4F, -4F, -4F, 8, 24, 8); FrontLegTip = new ModelRenderer(this, "frontlegtip"); FrontLegTip.SetRotationPoint(0.0F, 20F, -1F); FrontLegTip.AddBox("main", -3F, -1F, -3F, 6, 24, 6); FrontLeg.AddChild(FrontLegTip); FrontFoot = new ModelRenderer(this, "frontfoot"); FrontFoot.SetRotationPoint(0.0F, 23F, 0.0F); FrontFoot.AddBox("main", -4F, 0.0F, -12F, 8, 4, 16); FrontLegTip.AddChild(FrontFoot); RearLeg = new ModelRenderer(this, "rearleg"); RearLeg.SetRotationPoint(-16F, 16F, 42F); RearLeg.AddBox("main", -8F, -4F, -8F, 16, 32, 16); RearLegTip = new ModelRenderer(this, "rearlegtip"); RearLegTip.SetRotationPoint(0.0F, 32F, -4F); RearLegTip.AddBox("main", -6F, -2F, 0.0F, 12, 32, 12); RearLeg.AddChild(RearLegTip); RearFoot = new ModelRenderer(this, "rearfoot"); RearFoot.SetRotationPoint(0.0F, 31F, 4F); RearFoot.AddBox("main", -9F, 0.0F, -20F, 18, 6, 24); RearLegTip.AddChild(RearFoot); }