protected void convertToChild(ModelRenderer parParent, ModelRenderer parChild) { parChild.rotationPointX -= parParent.rotationPointX; parChild.rotationPointY -= parParent.rotationPointY; parChild.rotationPointZ -= parParent.rotationPointZ; parChild.rotateAngleX -= parParent.rotateAngleX; parChild.rotateAngleY -= parParent.rotateAngleY; parChild.rotateAngleZ -= parParent.rotateAngleZ; parParent.addChild(parChild); }
this.helmAnchor.addChild(this.helm); this.helm.addChild(this.helmFairy); this.helm.addChild(this.helmWing1l); this.helm.addChild(this.helmWing2l); this.helm.addChild(this.helmWing1r); this.helm.addChild(this.helmWing2r); this.bodyAnchor.addChild(this.bodyTop); this.bodyTop.addChild(this.bodyBottom); this.armLAnchor.addChild(this.armL); this.armL.addChild(this.armLpauldron); this.armLpauldron.addChild(this.armLwing1); this.armLpauldron.addChild(this.armLwing2); this.armRAnchor.addChild(this.armR); this.armR.addChild(this.armRpauldron); this.armRpauldron.addChild(this.armRwing1); this.armRpauldron.addChild(this.armRwing2); this.pantsAnchor.addChild(this.belt); this.belt.addChild(this.legL); this.belt.addChild(this.legR);; this.bootL.addChild(bootLwing1); this.bootL.addChild(bootLwing2); this.bootR.addChild(bootRwing1); this.bootR.addChild(bootRwing2);
this.helmAnchor.addChild(this.helm); this.helm.addChild(this.helmTop); this.helm.addChild(this.helmCrystal); this.bodyAnchor.addChild(this.bodyTop); this.bodyTop.addChild(this.bodyBottom); this.armLAnchor.addChild(this.armL); this.armL.addChild(this.armLpauldron); this.armLpauldron.addChild(this.armLcrystal); this.armRAnchor.addChild(this.armR); this.armR.addChild(this.armRpauldron); this.armRpauldron.addChild(this.armRcrystal); this.pantsAnchor.addChild(this.belt); this.belt.addChild(this.legL); this.belt.addChild(this.legR);; this.bootL.addChild(bootLcrystal); this.bootR.addChild(bootRcrystal);
this.helmAnchor.addChild(this.helm); this.helm.addChild(this.helmFront); this.helm.addChild(this.helmLeaf1l); this.helm.addChild(this.helmLeaf2l); this.helm.addChild(this.helmLeaf3l); this.helm.addChild(this.helmLeaf1r); this.helm.addChild(this.helmLeaf2r); this.helm.addChild(this.helmLeaf3r); this.helm.addChild(this.helmbranch1l); this.helm.addChild(this.helmbranch2l); this.helm.addChild(this.helmbranch1r); this.helm.addChild(this.helmbranch2r); this.bodyAnchor.addChild(this.bodyTop); this.bodyTop.addChild(this.bodyBottom); this.armLAnchor.addChild(this.armL); this.armL.addChild(this.armLpauldron); this.armLpauldron.addChild(this.armLbranch1); this.armLpauldron.addChild(this.armLbranch2); this.armRAnchor.addChild(this.armR); this.armR.addChild(this.armRpauldron); this.armRpauldron.addChild(this.armRbranch1); this.armRpauldron.addChild(this.armRbranch2); this.pantsAnchor.addChild(this.belt); this.belt.addChild(this.legL); this.belt.addChild(this.legR); this.bootL.addChild(bootLtop);
this.helmAnchor.addChild(this.helm); this.bodyAnchor.addChild(this.bodyTop); this.bodyTop.addChild(this.bodyBottom); this.armLAnchor.addChild(this.armL); this.armL.addChild(this.armLpauldron); this.armRAnchor.addChild(this.armR); this.armR.addChild(this.armRpauldron); this.pantsAnchor.addChild(this.legL); this.pantsAnchor.addChild(this.legR); this.legL.addChild(this.skirtL); this.legR.addChild(this.skirtR);
@Override public void addChild(ModelRenderer child) { super.addChild(child); if (child instanceof AdvancedModelRenderer) { AdvancedModelRenderer advancedChild = (AdvancedModelRenderer) child; advancedChild.setParent(this); } }
public ModelTophat() { super(1.0F, 0, 64, 32); tophatBase = new ModelRenderer(this, 64, 32).setTextureOffset(32, 0); tophatBase.addBox(-4.0F, -16.0F, -4.0F, 8, 7, 8); bipedHead.addChild(tophatBase); tophatHat = new ModelRenderer(this, 64, 32).setTextureOffset(0, 16); tophatHat.addBox(-5.5F, -9.0F, -5.5F, 11, 1, 11); bipedHead.addChild(tophatHat); }
public EntityRendererRangedRougeAndroid(RenderManager renderManager) { super(renderManager, new ModelBiped(0, 0, 96, 64), 0, false); visorModel = new MOModelRenderColored(mainModel, 64, 0); visorModel.setDisableLighting(true); visorModel.addBox(-4, -8, -4, 8, 8, 8); ((ModelBiped) mainModel).bipedHead.addChild(visorModel); }
public static ModelInterface getMonocle() { ModelInterface model = monocleInstance; if (model == null) { model = monocleInstance = new ModelInterface(); ModelRenderer main = new ModelRenderer(model, 14, 0); main.setRotationPoint(0.0F, 0.0F, 0.0F); main.addBox(-0.1F, -5.5F, -5.1F, 3, 3, 1, 0.0F); model.bipedHeadwear.addChild(main); } return model; }
public static ModelInterface getNormal() { ModelInterface model = normalInstance; if (model == null) { model = normalInstance = new ModelInterface(); ModelRenderer main = new ModelRenderer(model, 0, 0); main.setRotationPoint(0.0F, 0.0F, 0.0F); main.addBox(-0.1F, -5.0F, -5.1F, 5, 3, 1, 0.0F); ModelRenderer side = new ModelRenderer(model, 5, 0); side.setRotationPoint(0.0F, 0.0F, 0.0F); side.addBox(3.9F, -5.0F, -4.1F, 1, 2, 7, 0.0F); model.bipedHeadwear.addChild(main); model.bipedHeadwear.addChild(side); } return model; }
public ModelBackpack() { base = new ModelRenderer(this); straps = new ModelRenderer(this, 24, 0); straps.setRotationPoint(0.0F, 0.0F, 0.0F); straps.addBox(-4.0F, 0.0F, -3.0F, 8, 8, 5, 0.0F); fitting = new ModelRenderer(this, 50, 0); fitting.setRotationPoint(0.0F, 0.0F, 0.0F); fitting.addBox(-1.0F, 3.0F, 6.0F, 2, 3, 1, 0.0F); backpack = new ModelRenderer(this, 0, 0); backpack.setRotationPoint(0.0F, 0.0F, 0.0F); backpack.addBox(-4.0F, 0.0F, 2.0F, 8, 10, 4, 0.0F); // lock = new ModelRenderer(this, 50, 4); // lock.setRotationPoint(0.0F, 0.0F, 0.0F); // lock.addBox(-2.0F, 4.0F, 6.0F, 4, 3, 2, 0.0F); base.addChild(straps); base.addChild(backpack); base.addChild(fitting); // base.addChild(lock); }
horn1a.rotateAngleY = -0.5235988F; horn1a.rotateAngleZ = (zangle / 57.295776F); bipedHead.addChild(horn1a); hornParts[0] = horn1a; horn1b.rotateAngleY = -0.3490659F; horn1b.rotateAngleZ = (zangle / 57.295776F); horn1a.addChild(horn1b); hornParts[1] = horn1b; horn2a.rotateAngleY = 0.5235988F; horn2a.rotateAngleZ = (-zangle / 57.295776F); bipedHead.addChild(horn2a); hornParts[2] = horn2a; horn2b.rotateAngleY = 0.3490659F; horn2b.rotateAngleZ = (-zangle / 57.295776F); horn2a.addChild(horn2b); hornParts[3] = horn2b; return hornParts;
public ModelTrollArmor(float modelSize) { super(modelSize, 0, 64, 64); this.textureWidth = 64; this.textureHeight = 64; this.hornL = new ModelRenderer(this, 3, 41); this.hornL.mirror = true; this.hornL.setRotationPoint(3.0F, -2.2F, -3.0F); this.hornL.addBox(-1.0F, -0.5F, 0.0F, 1, 2, 5, 0.0F); this.setRotateAngle(hornL, -0.7740535232594852F, 2.9595548126067843F, -0.27314402793711257F); this.hornL2 = new ModelRenderer(this, 15, 50); this.hornL2.mirror = true; this.hornL2.setRotationPoint(-0.4F, 1.3F, 4.5F); this.hornL2.addBox(-0.51F, -0.8F, -0.0F, 1, 2, 7, 0.0F); this.setRotateAngle(hornL2, 1.2747884856566583F, 0.0F, 0.0F); this.hornR = new ModelRenderer(this, 4, 41); this.hornR.mirror = true; this.hornR.setRotationPoint(-3.3F, -2.2F, -3.0F); this.hornR.addBox(-0.5F, -0.5F, 0.0F, 1, 2, 5, 0.0F); this.setRotateAngle(hornR, -0.7740535232594852F, -2.9595548126067843F, 0.27314402793711257F); this.hornR2 = new ModelRenderer(this, 15, 50); this.hornR2.mirror = true; this.hornR2.setRotationPoint(-0.6F, 1.3F, 4.5F); this.hornR2.addBox(-0.01F, -0.8F, -0.0F, 1, 2, 7, 0.0F); this.setRotateAngle(hornR2, 1.2747884856566583F, 0.0F, 0.0F); this.bipedHead.addChild(this.hornL); this.hornL.addChild(this.hornL2); this.bipedHead.addChild(this.hornR); this.hornR.addChild(this.hornR2); }
public ModelPirateHat() { float modelOff = -6F; textureWidth = 64; textureHeight = 64; hatPart3 = new ModelRenderer(this, 0, 30); hatPart3.setRotationPoint(0.0F, 0.0F, 0.0F); hatPart3.addBox(-5.0F, -4.0F + modelOff, -3.0F, 1, 4, 8, 0.0F); setRotateAngle(hatPart3, -0.08726646259971647F, 0.0F, -0.08726646259971647F); hat = new ModelRenderer(this, 0, 0); hat.setRotationPoint(0.0F, -8.53F, 0.0F); hat.addBox(-5.0F, 0F + modelOff, -5.0F, 10, 1, 10, 0.0F); setRotateAngle(hat, 0.05235987755982988F, 0.08726646259971647F, 0.0F); hatPart1 = new ModelRenderer(this, 0, 11); hatPart1.setRotationPoint(0.0F, 0.0F, 0.0F); hatPart1.addBox(-3.5F, -4.0F + modelOff, -3.5F, 7, 4, 8, 1.0F); hatPart4 = new ModelRenderer(this, 0, 23); hatPart4.setRotationPoint(0.0F, 0.0F, 0.0F); hatPart4.addBox(-5.0F, -6.4F + modelOff, -5.0F, 10, 6, 1, 0.0F); setRotateAngle(hatPart4, 0.08726646259971647F, 0.0F, 0.0F); hatPart2 = new ModelRenderer(this, 0, 30); hatPart2.mirror = true; hatPart2.setRotationPoint(0.0F, 0.0F, 0.0F); hatPart2.addBox(4.0F, -4.0F + modelOff, -3.0F, 1, 4, 8, 0.0F); setRotateAngle(hatPart2, -0.08726646259971647F, 0.0F, 0.08726646259971647F); hat.addChild(hatPart3); hat.addChild(hatPart1); hat.addChild(hatPart4); hat.addChild(hatPart2); }
public ModelGuardianStatue() { this.textureWidth = 64; this.textureHeight = 64; this.guardianSpines = new ModelRenderer[12]; this.guardianBody = new ModelRenderer(this); this.guardianBody.setTextureOffset(0, 0).addBox(-6.0F, 10.0F, -8.0F, 12, 12, 16); this.guardianBody.setTextureOffset(0, 28).addBox(-8.0F, 10.0F, -6.0F, 2, 12, 12); this.guardianBody.setTextureOffset(0, 28).addBox(6.0F, 10.0F, -6.0F, 2, 12, 12, true); this.guardianBody.setTextureOffset(16, 40).addBox(-6.0F, 8.0F, -6.0F, 12, 2, 12); this.guardianBody.setTextureOffset(16, 40).addBox(-6.0F, 22.0F, -6.0F, 12, 2, 12); for (int i = 0; i < this.guardianSpines.length; ++i) { this.guardianSpines[i] = new ModelRenderer(this, 0, 0); this.guardianSpines[i].addBox(-1.0F, -4.5F, -1.0F, 2, 9, 2); this.guardianBody.addChild(this.guardianSpines[i]); } this.guardianEye = new ModelRenderer(this, 8, 0); this.guardianEye.addBox(-1.0F, 15.0F, 0.0F, 2, 2, 1); this.guardianBody.addChild(this.guardianEye); this.guardianTail = new ModelRenderer[3]; this.guardianTail[0] = new ModelRenderer(this, 40, 0); this.guardianTail[0].addBox(-2.0F, 14.0F, 7.0F, 4, 4, 8); this.guardianTail[1] = new ModelRenderer(this, 0, 54); this.guardianTail[1].addBox(0.0F, 14.0F, 0.0F, 3, 3, 7); this.guardianTail[2] = new ModelRenderer(this); this.guardianTail[2].setTextureOffset(41, 32).addBox(0.0F, 14.0F, 0.0F, 2, 2, 6); this.guardianTail[2].setTextureOffset(25, 19).addBox(1.0F, 10.5F, 3.0F, 1, 9, 9); this.guardianBody.addChild(this.guardianTail[0]); this.guardianTail[0].addChild(this.guardianTail[1]); this.guardianTail[1].addChild(this.guardianTail[2]); }
public ModelWitchHat() { textureWidth = 64; textureHeight = 128; float offX = -5F; float offY = -10F; float offZ = -5F; witchHat = new ModelRenderer(this); witchHat.setTextureSize(64, 128); witchHat.setRotationPoint(-5.0F, -10.03125F, -5.0F); witchHat.setTextureOffset(0, 64).addBox(offX, offY, offZ, 10, 2, 10); ModelRenderer modelrenderer = new ModelRenderer(this).setTextureSize(64, 128); modelrenderer.setRotationPoint(1.75F, -3.8F, 2.0F); modelrenderer.setTextureOffset(0, 76).addBox(offX, offY, offZ, 7, 4, 7); modelrenderer.rotateAngleX = -0.05235988F; modelrenderer.rotateAngleZ = 0.02617994F; witchHat.addChild(modelrenderer); ModelRenderer modelrenderer1 = new ModelRenderer(this).setTextureSize(64, 128); modelrenderer1.setRotationPoint(1.75F, -3.0F, 2.0F); modelrenderer1.setTextureOffset(0, 87).addBox(offX, offY, offZ, 4, 4, 4); modelrenderer1.rotateAngleX = -0.10471976F; modelrenderer1.rotateAngleZ = 0.05235988F; modelrenderer.addChild(modelrenderer1); ModelRenderer modelrenderer2 = new ModelRenderer(this).setTextureSize(64, 128); modelrenderer2.setRotationPoint(1.0F, -1.0F, 0F); modelrenderer2.setTextureOffset(0, 95).addBox(offX, offY, offZ, 1, 2, 1, 0.25F); modelrenderer2.rotateAngleX = -0.20943952F; modelrenderer2.rotateAngleZ = 0.10471976F; modelrenderer1.addChild(modelrenderer2); }
public ModelFrequencyShifter() { textureWidth = 34; textureHeight = 32; EarR = new ModelRenderer(this, 0, 0); EarR.setRotationPoint(0.0F, 0.0F, 0.0F); EarR.addBox(-5.0F, -6.5F, -2.0F, 1, 4, 4, 0.0F); EarL = new ModelRenderer(this, 0, 0); EarL.setRotationPoint(0.0F, 0.0F, 0.0F); EarL.addBox(4.0F, -6.5F, -2.0F, 1, 4, 4, 0.0F); Stem = new ModelRenderer(this, 0, 15); Stem.setRotationPoint(0.0F, 0.0F, 0.0F); Stem.addBox(4.0F, -10.5F, -4.5F, 1, 16, 1, -0.2F); setRotateAngle(Stem, -1.0471975511965976F, 0.0F, 0.0F); Headband = new ModelRenderer(this, 10, 0); Headband.setRotationPoint(0.0F, 0.0F, 0.0F); Headband.addBox(-5.0F, -9.0F, -1.0F, 10, 4, 2, -0.5F); Mic = new ModelRenderer(this, 0, 15); Mic.setRotationPoint(0.0F, 0.0F, 0.0F); Mic.addBox(2.2F, 4.5F, -4.5F, 2, 1, 1, 0.0F); Stem.addChild(Mic); }