public ModelBellows() { textureWidth = 64; textureHeight = 32; top = new ModelRenderer(this, 0, 0); top.setRotationPoint(0.0F, 16.0F, 0.0F); top.addBox(-4.0F, -2.0F, -4.0F, 8, 1, 8, 0.0F); base = new ModelRenderer(this, 0, 9); base.setRotationPoint(0.0F, 16.0F, 0.0F); base.addBox(-5.0F, 6.0F, -5.0F, 10, 2, 10, 0.0F); pipe = new ModelRenderer(this, 0, 21); pipe.setRotationPoint(0.0F, 16.0F, 0.0F); pipe.addBox(-1.0F, 6.0F, -8.0F, 2, 2, 3, 0.0F); funnel = new ModelRenderer(this, 40, 0); funnel.setRotationPoint(0.0F, 0.0F, 0.0F); funnel.addBox(0.0F, 0.0F, 0.0F, 6, 7, 6, 0.0F); }
public ModelTinyPotato() { textureWidth = 16; textureHeight = 16; potato = new ModelRenderer(this, 0, 0); potato.addBox(0F, 0F, 0F, 4, 6, 4); potato.setRotationPoint(-2F, 18F, -2F); potato.setTextureSize(64, 32); }
this.helmAnchor = new ModelRenderer(this, 0, 0); this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F); this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s); this.helm = new ModelRenderer(this, 0, 0); this.helm.setRotationPoint(0.0F, 0.0F, 0.0F); this.helm.addBox(-4.5F, -9.5F, -4.0F, 9, 11, 10, s); this.setRotateAngle(helm, 0.17453292519943295F, 0.0F, 0.0F); this.bodyAnchor = new ModelRenderer(this, 0, 0); this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s); this.bodyTop = new ModelRenderer(this, 0, 21); this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyTop.addBox(-4.5F, -0.5F, -3.0F, 9, 7, 6, s); this.setRotateAngle(bodyTop, 0.0F, 0.0F, 0.0F); this.bodyBottom = new ModelRenderer(this, 0, 34); this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyBottom.addBox(-4.5F, 6.5F, -2.5F, 9, 5, 5, s); this.setRotateAngle(bodyBottom, -0F, 0.0F, 0.0F); this.armLAnchor = new ModelRenderer(this, 0, 0); this.armLAnchor.mirror = true; this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F); this.armLAnchor.addBox(0.0F, -1.0F, -1.0F, 2, 2, 2, s); this.armL = new ModelRenderer(this, 0, 44); this.armL.mirror = true; this.armL.setRotationPoint(0.0F, 0.0F, 0.0F); this.armL.addBox(-1.5F, -2.5F, -2.49F, 5, 10, 5, s); this.armLpauldron = new ModelRenderer(this, 20, 44);
public ModelFluidSteam() { this.box1 = new ModelRenderer(this, 0, 0); box1.setTextureSize(64, 64); box1.addBox(12.0F, 2.5F, 2.5F, 4, 11, 11); this.box2 = new ModelRenderer(this, 30, 0); box2.setTextureSize(64, 64); box2.addBox(0.0F, 3.0F, 3.0F, 5, 10, 10); this.box3 = new ModelRenderer(this, 0, 22); box3.setTextureSize(64, 64); box3.addBox(3.0F, 2.5F, 2.5F, 1, 11, 11); }
public ModelElemental() { for (int i = 0; i < elementalRods.length; i++) { elementalRods[i] = new ModelRenderer(this, 0, 16); elementalRods[i].addBox(0.0F, 0.0F, 0.0F, 2, 8, 2); } elementalHead = new ModelRenderer(this, 0, 0); elementalHead.addBox(-4.0F, -4.0F, -4.0F, 8, 8, 8); }
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); }
private ModelInterface() { textureWidth = 22; textureHeight = 9; bipedHeadwear = new ModelRenderer(this, 0, 0); }
public ModelExosuitTank() { tank.addBox(-4.0F, -1F, 2F, 8, 12, 6); }
this.bipedHead.rotateAngleY = 0.017453292F * entityarmorstand.getHeadRotation().getY(); this.bipedHead.rotateAngleZ = 0.017453292F * entityarmorstand.getHeadRotation().getZ(); this.bipedHead.setRotationPoint(0.0F, 1.0F, 0.0F); this.bipedBody.rotateAngleX = 0.017453292F * entityarmorstand.getBodyRotation().getX(); this.bipedBody.rotateAngleY = 0.017453292F * entityarmorstand.getBodyRotation().getY(); this.bipedLeftLeg.rotateAngleY = 0.017453292F * entityarmorstand.getLeftLegRotation().getY(); this.bipedLeftLeg.rotateAngleZ = 0.017453292F * entityarmorstand.getLeftLegRotation().getZ(); this.bipedLeftLeg.setRotationPoint(1.9F, 11.0F, 0.0F); this.bipedRightLeg.rotateAngleX = 0.017453292F * entityarmorstand.getRightLegRotation().getX(); this.bipedRightLeg.rotateAngleY = 0.017453292F * entityarmorstand.getRightLegRotation().getY(); this.bipedRightLeg.rotateAngleZ = 0.017453292F * entityarmorstand.getRightLegRotation().getZ(); this.bipedRightLeg.setRotationPoint(-1.9F, 11.0F, 0.0F); copyModelAngles(this.bipedHead, this.bipedHeadwear); } else super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn);
@Override public void postRenderArm(float scale, EnumHandSide side) { ModelRenderer modelrenderer = this.getArmForSide(side); if (smallArms) { float f = 0.5F * (float)(side == EnumHandSide.RIGHT ? 1 : -1); modelrenderer.rotationPointX += f; modelrenderer.postRender(scale); modelrenderer.rotationPointX -= f; } else { modelrenderer.postRender(scale); } } }
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 = new ModelRenderer(this, 0, 0); this.helmAnchor.setRotationPoint(0.0F, 0.0F, 0.0F); this.helmAnchor.addBox(-1.0F, -2.0F, 0.0F, 2, 2, 2, s); this.helm = new ModelRenderer(this, 0, 0); this.helm.setRotationPoint(0.0F, 0.0F, 0.0F); this.helm.addBox(-4.5F, -8.5F, -4.5F, 9, 9, 9, s); this.helmTop = new ModelRenderer(this, 36, 6); this.helmTop.setRotationPoint(0.0F, -8.5F, 3.5F); this.helmTop.addBox(-1.5F, 0.0F, -7.0F, 3, 3, 7, s); this.setRotateAngle(helmTop, -0.2617993877991494F, 0.0F, 0.0F); this.helmCrystal = new ModelRenderer(this, 36, 0); this.helmCrystal.setRotationPoint(0.0F, -7.5F, -4.5F); this.helmCrystal.addBox(-1.5F, -4.0F, -1.0F, 3, 5, 1, s); this.setRotateAngle(helmCrystal, 0.08726646259971647F, 0.0F, 0.0F); this.bodyAnchor = new ModelRenderer(this, 0, 0); this.bodyAnchor.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyAnchor.addBox(-1.0F, 0.0F, -1.0F, 2, 2, 2, s); this.bodyTop = new ModelRenderer(this, 0, 18); this.bodyTop.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyTop.addBox(-4.5F, -0.5F, -3.0F, 9, 6, 6, s); this.setRotateAngle(bodyTop, 0.0F, 0.0F, 0.0F); this.bodyBottom = new ModelRenderer(this, 0, 30); this.bodyBottom.setRotationPoint(0.0F, 0.0F, 0.0F); this.bodyBottom.addBox(-2.5F, 5.5F, -2.5F, 5, 3, 5, 0.0F); this.armLAnchor = new ModelRenderer(this, 0, 0); this.armLAnchor.mirror = true; this.armLAnchor.setRotationPoint(4.0F, 2.0F, 0.0F);
public ModelCape(float f) { super(f, 0.0F, 64, 32); this.cape = new ModelRenderer(this, 0, 0); this.cape.setTextureSize(64, 32); this.cape.addBox(-5.0F, 0.0F, -1.0F, 10, 16, 1, f); }
public ModelLog() { textureHeight = 16; textureWidth = 16; logRenderer = new ModelRenderer(this, 0, 0); logRenderer.addBox(0, 0, 0, 16, 8 / LOG_ROWS, 16 / LOGS_PER_ROW); }
public ModelAbstractTurret(int texOffYBase, int texOffYPole, int texOffYBoxUnder) { textureWidth = 64; textureHeight = 64; this.Base = new ModelRenderer(this, 0, texOffYBase); this.Pole = new ModelRenderer(this, 0, texOffYPole); this.BoxUnder = new ModelRenderer(this, 0, texOffYBoxUnder); }
@Override public void postRenderArm (float scale, EnumHandSide side) { final ModelRenderer modelrenderer = this.getArmForSide(side); if (this.isFeminine) { final float f = 0.5F * (side == EnumHandSide.RIGHT ? 1 : -1); modelrenderer.rotationPointX += f; modelrenderer.postRender(scale); modelrenderer.rotationPointX -= f; } else { modelrenderer.postRender(scale); } } }
@Override public void addChild(ModelRenderer child) { super.addChild(child); if (child instanceof AdvancedModelRenderer) { AdvancedModelRenderer advancedChild = (AdvancedModelRenderer) child; advancedChild.setParent(this); } }
public ModelBrewery() { textureWidth = 32; textureHeight = 16; top = new ModelRenderer(this, 8, 0); top.setRotationPoint(0.0F, 16.0F, 0.0F); top.addBox(-2.0F, -7.0F, -2.0F, 4, 1, 4, 0.0F); pole = new ModelRenderer(this, 0, 0); pole.setRotationPoint(0.0F, 16.0F, 0.0F); pole.addBox(-1.0F, -6.0F, -1.0F, 2, 10, 2, 0.0F); bottom = new ModelRenderer(this, 8, 5); bottom.setRotationPoint(0.0F, 16.0F, 0.0F); bottom.addBox(-2.0F, 4.0F, -2.0F, 4, 1, 4, 0.0F); plate = new ModelRenderer(this, 8, 5); plate.setRotationPoint(0.0F, 17.0F, 0.0F); plate.addBox(5.0F, 0.0F, -2.0F, 4, 1, 4, 0.0F); }
public ModelSpinningCubes() { spinningCube = new ModelRenderer(this, 42, 0); spinningCube.addBox(0F, 0F, 0F, 1, 1, 1); spinningCube.setRotationPoint(0F, 0F, 0F); spinningCube.setTextureSize(64, 64); }