Package net.minecraft.client.model

Examples of net.minecraft.client.model.ModelBox


            cubeCopy.textureHeight = parentCube.textureHeight;
            cubeCopy.textureWidth = cubeCopy.textureWidth;
           
            for(int j = 0; j < parentCube.cubeList.size(); j++)
            {
              ModelBox box = (ModelBox)parentCube.cubeList.get(j);
              float param7 = 0.0F;
             
              ModelBox randBox;
              if(modelList.size() > 0)
              {
                ModelRenderer randCube = modelList.get(rand.nextInt(modelList.size()));
                randBox = (ModelBox)randCube.cubeList.get(rand.nextInt(randCube.cubeList.size()));
              }
View Full Code Here


      for(int i = 0; i < morphCubesList.size(); i++)
      {
        ModelRenderer cube = (ModelRenderer)morphCubesList.get(i);
        for(int j = cube.cubeList.size() - 1; j >= 0 ; j--)
        {
          ModelBox box = (ModelBox)cube.cubeList.get(j);
         
          float nextXpos = 0.0F;
          float nextYpos = 0.0F;
          float nextZpos = 0.0F;
         
          float prevXpos = 0.0F;
          float prevYpos = 0.0F;
          float prevZpos = 0.0F;
         
          int newXSize = 0;
          int newYSize = 0;
          int newZSize = 0;
         
          int prevXSize = 0;
          int prevYSize = 0;
          int prevZSize = 0;
         
          ModelBox newBox = null;
          ModelBox prevBox = null;
         
          ModelRenderer nextMorphCube = null;
          ModelRenderer currentMorphCube = null;

          if(i < nextMorphCubes.size())
View Full Code Here

    }
    if(copy.cubeList.size() < ori.cubeList.size())
    {
      for(int j = copy.cubeList.size(); j < ori.cubeList.size(); j++)
      {
        ModelBox box = (ModelBox)ori.cubeList.get(j);
        float param7 = 0.0F;

        ModelBox randBox = (ModelBox)ori.cubeList.get(rand.nextInt(ori.cubeList.size()));

        float x = randBox.posX1 + ((randBox.posX2 - randBox.posX1) > 0F ? rand.nextInt(((int)(randBox.posX2 - randBox.posX1) > 0) ? (int)(randBox.posX2 - randBox.posX1) : 1) : 0F);
        float y = randBox.posY1 + ((randBox.posY2 - randBox.posY1) > 0F ? rand.nextInt(((int)(randBox.posY2 - randBox.posY1) > 0) ? (int)(randBox.posY2 - randBox.posY1) : 1) : 0F);
        float z = randBox.posZ1 + ((randBox.posZ2 - randBox.posZ1) > 0F ? rand.nextInt(((int)(randBox.posZ2 - randBox.posZ1) > 0) ? (int)(randBox.posZ2 - randBox.posZ1) : 1) : 0F);
View Full Code Here

    cubeCopy.textureHeight = original.textureHeight;
    cubeCopy.textureWidth = original.textureWidth;

    for(int j = 0; j < original.cubeList.size(); j++)
    {
      ModelBox box = (ModelBox)original.cubeList.get(j);
      float param7 = 0.0F;

      if(hasFullModelBox)
      {
        cubeCopy.addBox(box.posX1, box.posY1, box.posZ1, (int)Math.abs(box.posX2 - box.posX1), (int)Math.abs(box.posY2 - box.posY1), (int)Math.abs(box.posZ2 - box.posZ1));
      }
      else
      {
        ModelBox randBox = (ModelBox)original.cubeList.get(rand.nextInt(original.cubeList.size()));

        float x = randBox.posX1 + ((randBox.posX2 - randBox.posX1) > 0F ? rand.nextInt(((int)(randBox.posX2 - randBox.posX1) > 0) ? (int)(randBox.posX2 - randBox.posX1) : 1) : 0F);
        float y = randBox.posY1 + ((randBox.posY2 - randBox.posY1) > 0F ? rand.nextInt(((int)(randBox.posY2 - randBox.posY1) > 0) ? (int)(randBox.posY2 - randBox.posY1) : 1) : 0F);
        float z = randBox.posZ1 + ((randBox.posZ2 - randBox.posZ1) > 0F ? rand.nextInt(((int)(randBox.posZ2 - randBox.posZ1) > 0) ? (int)(randBox.posZ2 - randBox.posZ1) : 1) : 0F);
       
View Full Code Here

  public static int getModelHeight(ModelRenderer model)
  {
    int height = 0;//Y1 lower than Y2
    for(int i = 0; i < model.cubeList.size(); i++)
    {
      ModelBox box = (ModelBox)model.cubeList.get(i);
      if((int)Math.abs(box.posY2 - box.posY1) > height)
      {
        height = (int)Math.abs(box.posY2 - box.posY1);
      }
    }
View Full Code Here

      mag = 1.0F;
    }
   
    for(int i = 0; i < nextArm.cubeList.size(); i++)
    {
      ModelBox newBox = (ModelBox)nextArm.cubeList.get(i);
      ModelBox prevBox = null;
     
      if(i < prevArm.cubeList.size())
      {
        prevBox = (ModelBox)prevArm.cubeList.get(i);
      }
View Full Code Here

TOP

Related Classes of net.minecraft.client.model.ModelBox

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.