Package mekanism.api

Examples of mekanism.api.Pos3D.translate()


    {
      Pos3D pos = new Pos3D();
      pos.zPos += 0.3;
      pos.xPos -= 0.4;
      pos.rotateYaw(entityplayer.renderYawOffset);
      pos.translate(new Pos3D(entityplayer));

      world.spawnEntityInWorld(new EntityBalloon(world, pos.xPos-0.5, pos.yPos-0.25, pos.zPos-0.5, getColor(itemstack)));
    }

    itemstack.stackSize--;
View Full Code Here


        Pos3D pos = new Pos3D(coord);
       
        switch(side)
        {
          case DOWN:
            pos.translate(0, -2.5, 0);
            break;
          case UP:
            pos.translate(0, 0, 0);
            break;
          case NORTH:
View Full Code Here

        {
          case DOWN:
            pos.translate(0, -2.5, 0);
            break;
          case UP:
            pos.translate(0, 0, 0);
            break;
          case NORTH:
            pos.translate(0, -1, -0.5);
            break;
          case SOUTH:
View Full Code Here

            break;
          case UP:
            pos.translate(0, 0, 0);
            break;
          case NORTH:
            pos.translate(0, -1, -0.5);
            break;
          case SOUTH:
            pos.translate(0, -1, 0.5);
            break;
          case WEST:
View Full Code Here

            break;
          case NORTH:
            pos.translate(0, -1, -0.5);
            break;
          case SOUTH:
            pos.translate(0, -1, 0.5);
            break;
          case WEST:
            pos.translate(-0.5, -1, 0);
            break;
          case EAST:
View Full Code Here

            break;
          case SOUTH:
            pos.translate(0, -1, 0.5);
            break;
          case WEST:
            pos.translate(-0.5, -1, 0);
            break;
          case EAST:
            pos.translate(0.5, -1, 0);
            break;
        }
View Full Code Here

            break;
          case WEST:
            pos.translate(-0.5, -1, 0);
            break;
          case EAST:
            pos.translate(0.5, -1, 0);
            break;
        }
       
        if(!source.getWorld().isRemote)
        {
View Full Code Here

 
          Pos3D playerPos = new Pos3D(p);
 
          if(p != mc.thePlayer)
          {
            playerPos.translate(0, 1.7, 0);
          }
 
          float random = (rand.nextFloat()-0.5F)*0.1F;
 
          Pos3D vLeft = new Pos3D();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.