Package com.mojang.minecraft.model

Examples of com.mojang.minecraft.model.ModelPart


                                 GL11.glScalef(1.0F, -1.0F, -1.0F);
                                 GL11.glTranslatef(0.0F, 0.2F, 0.0F);
                                 GL11.glRotatef(-120.0F, 0.0F, 0.0F, 1.0F);
                                 GL11.glScalef(1.0F, 1.0F, 1.0F);
                                 var34 = 0.0625F;
                                 ModelPart var127;
                                 if(!(var127 = var112.minecraft.player.getModel().leftArm).hasList) {
                                    var127.generateList(var34);
                                 }

                                 GL11.glCallList(var127.list);
                              }
View Full Code Here


import com.mojang.minecraft.model.ZombieModel;

public final class SkeletonModel extends ZombieModel {

   public SkeletonModel() {
      this.rightArm = new ModelPart(40, 16);
      this.rightArm.setBounds(-1.0F, -2.0F, -1.0F, 2, 12, 2, 0.0F);
      this.rightArm.setPosition(-5.0F, 2.0F, 0.0F);
      this.leftArm = new ModelPart(40, 16);
      this.leftArm.mirror = true;
      this.leftArm.setBounds(-1.0F, -2.0F, -1.0F, 2, 12, 2, 0.0F);
      this.leftArm.setPosition(5.0F, 2.0F, 0.0F);
      this.rightLeg = new ModelPart(0, 16);
      this.rightLeg.setBounds(-1.0F, 0.0F, -1.0F, 2, 12, 2, 0.0F);
      this.rightLeg.setPosition(-2.0F, 12.0F, 0.0F);
      this.leftLeg = new ModelPart(0, 16);
      this.leftLeg.mirror = true;
      this.leftLeg.setBounds(-1.0F, 0.0F, -1.0F, 2, 12, 2, 0.0F);
      this.leftLeg.setPosition(2.0F, 12.0F, 0.0F);
   }
View Full Code Here

   public HumanoidModel() {
      this(0.0F);
   }

   public HumanoidModel(float var1) {
      this.head = new ModelPart(0, 0);
      this.head.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, var1);
      this.headwear = new ModelPart(32, 0);
      this.headwear.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, var1 + 0.5F);
      this.body = new ModelPart(16, 16);
      this.body.setBounds(-4.0F, 0.0F, -2.0F, 8, 12, 4, var1);
      this.rightArm = new ModelPart(40, 16);
      this.rightArm.setBounds(-3.0F, -2.0F, -2.0F, 4, 12, 4, var1);
      this.rightArm.setPosition(-5.0F, 2.0F, 0.0F);
      this.leftArm = new ModelPart(40, 16);
      this.leftArm.mirror = true;
      this.leftArm.setBounds(-1.0F, -2.0F, -2.0F, 4, 12, 4, var1);
      this.leftArm.setPosition(5.0F, 2.0F, 0.0F);
      this.rightLeg = new ModelPart(0, 16);
      this.rightLeg.setBounds(-2.0F, 0.0F, -2.0F, 4, 12, 4, var1);
      this.rightLeg.setPosition(-2.0F, 12.0F, 0.0F);
      this.leftLeg = new ModelPart(0, 16);
      this.leftLeg.mirror = true;
      this.leftLeg.setBounds(-2.0F, 0.0F, -2.0F, 4, 12, 4, var1);
      this.leftLeg.setPosition(2.0F, 12.0F, 0.0F);
   }
View Full Code Here

public final class SheepFurModel extends AnimalModel {

   public SheepFurModel() {
      super(12, 0.0F);
      this.head = new ModelPart(0, 0);
      this.head.setBounds(-3.0F, -4.0F, -4.0F, 6, 6, 6, 0.6F);
      this.head.setPosition(0.0F, 6.0F, -8.0F);
      this.body = new ModelPart(28, 8);
      this.body.setBounds(-4.0F, -10.0F, -7.0F, 8, 16, 6, 1.75F);
      this.body.setPosition(0.0F, 5.0F, 2.0F);
      float var1 = 0.5F;
      this.leg1 = new ModelPart(0, 16);
      this.leg1.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, var1);
      this.leg1.setPosition(-3.0F, 12.0F, 7.0F);
      this.leg2 = new ModelPart(0, 16);
      this.leg2.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, var1);
      this.leg2.setPosition(3.0F, 12.0F, 7.0F);
      this.leg3 = new ModelPart(0, 16);
      this.leg3.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, var1);
      this.leg3.setPosition(-3.0F, 12.0F, -5.0F);
      this.leg4 = new ModelPart(0, 16);
      this.leg4.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, var1);
      this.leg4.setPosition(3.0F, 12.0F, -5.0F);
   }
View Full Code Here


   public SpiderModel() {
      this.head.setBounds(-4.0F, -4.0F, -8.0F, 8, 8, 8, 0.0F);
      this.head.setPosition(0.0F, 0.0F, -3.0F);
      this.neck = new ModelPart(0, 0);
      this.neck.setBounds(-3.0F, -3.0F, -3.0F, 6, 6, 6, 0.0F);
      this.body = new ModelPart(0, 12);
      this.body.setBounds(-5.0F, -4.0F, -6.0F, 10, 8, 12, 0.0F);
      this.body.setPosition(0.0F, 0.0F, 9.0F);
      this.leg1 = new ModelPart(18, 0);
      this.leg1.setBounds(-15.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg1.setPosition(-4.0F, 0.0F, 2.0F);
      this.leg2 = new ModelPart(18, 0);
      this.leg2.setBounds(-1.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg2.setPosition(4.0F, 0.0F, 2.0F);
      this.leg3 = new ModelPart(18, 0);
      this.leg3.setBounds(-15.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg3.setPosition(-4.0F, 0.0F, 1.0F);
      this.leg4 = new ModelPart(18, 0);
      this.leg4.setBounds(-1.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg4.setPosition(4.0F, 0.0F, 1.0F);
      this.leg5 = new ModelPart(18, 0);
      this.leg5.setBounds(-15.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg5.setPosition(-4.0F, 0.0F, 0.0F);
      this.leg6 = new ModelPart(18, 0);
      this.leg6.setBounds(-1.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg6.setPosition(4.0F, 0.0F, 0.0F);
      this.leg7 = new ModelPart(18, 0);
      this.leg7.setBounds(-15.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg7.setPosition(-4.0F, 0.0F, -1.0F);
      this.leg8 = new ModelPart(18, 0);
      this.leg8.setBounds(-1.0F, -1.0F, -1.0F, 16, 2, 2, 0.0F);
      this.leg8.setPosition(4.0F, 0.0F, -1.0F);
   }
View Full Code Here

   private ModelPart leg4;


   public CreeperModel() {
      this.head.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F);
      this.unused = new ModelPart(32, 0);
      this.unused.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F + 0.5F);
      this.body = new ModelPart(16, 16);
      this.body.setBounds(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F);
      this.leg1 = new ModelPart(0, 16);
      this.leg1.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, 0.0F);
      this.leg1.setPosition(-2.0F, 12.0F, 4.0F);
      this.leg2 = new ModelPart(0, 16);
      this.leg2.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, 0.0F);
      this.leg2.setPosition(2.0F, 12.0F, 4.0F);
      this.leg3 = new ModelPart(0, 16);
      this.leg3.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, 0.0F);
      this.leg3.setPosition(-2.0F, 12.0F, -4.0F);
      this.leg4 = new ModelPart(0, 16);
      this.leg4.setBounds(-2.0F, 0.0F, -2.0F, 4, 6, 4, 0.0F);
      this.leg4.setPosition(2.0F, 12.0F, -4.0F);
   }
View Full Code Here

public final class SheepModel extends AnimalModel {

   public SheepModel() {
      super(12, 0.0F);
      this.head = new ModelPart(0, 0);
      this.head.setBounds(-3.0F, -4.0F, -6.0F, 6, 6, 8, 0.0F);
      this.head.setPosition(0.0F, 6.0F, -8.0F);
      this.body = new ModelPart(28, 8);
      this.body.setBounds(-4.0F, -10.0F, -7.0F, 8, 16, 6, 0.0F);
      this.body.setPosition(0.0F, 5.0F, 2.0F);
   }
View Full Code Here


   public AnimalModel(int var1, float var2) {
      this.head.setBounds(-4.0F, -4.0F, -8.0F, 8, 8, 8, 0.0F);
      this.head.setPosition(0.0F, (float)(18 - var1), -6.0F);
      this.body = new ModelPart(28, 8);
      this.body.setBounds(-5.0F, -10.0F, -7.0F, 10, 16, 8, 0.0F);
      this.body.setPosition(0.0F, (float)(17 - var1), 2.0F);
      this.leg1 = new ModelPart(0, 16);
      this.leg1.setBounds(-2.0F, 0.0F, -2.0F, 4, var1, 4, 0.0F);
      this.leg1.setPosition(-3.0F, (float)(24 - var1), 7.0F);
      this.leg2 = new ModelPart(0, 16);
      this.leg2.setBounds(-2.0F, 0.0F, -2.0F, 4, var1, 4, 0.0F);
      this.leg2.setPosition(3.0F, (float)(24 - var1), 7.0F);
      this.leg3 = new ModelPart(0, 16);
      this.leg3.setBounds(-2.0F, 0.0F, -2.0F, 4, var1, 4, 0.0F);
      this.leg3.setPosition(-3.0F, (float)(24 - var1), -5.0F);
      this.leg4 = new ModelPart(0, 16);
      this.leg4.setBounds(-2.0F, 0.0F, -2.0F, 4, var1, 4, 0.0F);
      this.leg4.setPosition(3.0F, (float)(24 - var1), -5.0F);
   }
View Full Code Here

TOP

Related Classes of com.mojang.minecraft.model.ModelPart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.