Package powercrystals.core.position

Examples of powercrystals.core.position.BlockPosition.moveBackwards()


      }
      EntityAgeable a = (EntityAgeable)o;
      if((a.getGrowingAge() < 0 && !_moveOld) || (a.getGrowingAge() >= 0 && _moveOld))
      {
        BlockPosition bp = BlockPosition.fromFactoryTile(this);
        bp.moveBackwards(1);
        a.setPosition(bp.x + 0.5, bp.y + 0.5, bp.z + 0.5);
       
        return true;
      }
    }
View Full Code Here


    if (side <= 1)
    {
      bp = new BlockPosition(x, y, z, ForgeDirection.NORTH);
      bp.moveRight(1);
      sides[0] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveBackwards(1);
      sides[4] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveLeft(1);
      sides[1] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveLeft(1);
      sides[5] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
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.