Package powercrystals.core.position

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


    sides[5] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveUp(1);
    sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveUp(1);
    sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveRight(1);
    sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveRight(1);
    sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    return new IconOverlay(BlockFactoryGlass._texture, 8, 8, sides);
  }
View Full Code Here


    sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveUp(1);
    sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveRight(1);
    sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveRight(1);
    sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    return new IconOverlay(BlockFactoryGlass._texture, 8, 8, sides);
  }

  @Override
View Full Code Here

  public Icon getBlockOverlayTexture(IBlockAccess world, int x, int y, int z, int side)
  {
    BlockPosition bp = new BlockPosition(x, y, z, ForgeDirection.VALID_DIRECTIONS[side]);
    boolean[] sides = new boolean[8];
    bp.moveRight(1);
    sides[0] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    bp.moveDown(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;
View Full Code Here

    BlockPosition bp;
    boolean[] sides = new boolean[8];
    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;
View Full Code Here

      sides[5] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveForwards(1);
      sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveForwards(1);
      sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    }
    else
View Full Code Here

      sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveForwards(1);
      sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    }
    else
    {
      bp = new BlockPosition(x, y, z, ForgeDirection.VALID_DIRECTIONS[side]);
View Full Code Here

      sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    }
    else
    {
      bp = new BlockPosition(x, y, z, ForgeDirection.VALID_DIRECTIONS[side]);
      bp.moveRight(1);
      sides[0] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveDown(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;
View Full Code Here

      sides[5] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveUp(1);
      sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveUp(1);
      sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    }
    return new IconOverlay(_texture, 8, 8, sides);
View Full Code Here

      sides[3] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveUp(1);
      sides[6] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[2] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
      bp.moveRight(1);
      sides[7] = world.getBlockId(bp.x,bp.y,bp.z) == blockID;
    }
    return new IconOverlay(_texture, 8, 8, sides);
  }
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.