Examples of convertChunkY()


Examples of org.spout.api.protocol.reposition.RepositionManager.convertChunkY()

    int y = (int) p.getY() >> Chunk.BLOCKS.BITS; // + SEALEVEL_CHUNK;
    int z = (int) p.getZ() >> Chunk.BLOCKS.BITS;

    RepositionManager rm = getRepositionManager();

    int cY = rm.convertChunkY(y);

    if (cY < 0 || cY >= WORLD_HEIGHT >> Chunk.BLOCKS.BITS) {
      return;
    }
View Full Code Here

Examples of org.spout.api.protocol.reposition.RepositionManager.convertChunkY()

    int y = p.getChunkY();// + SEALEVEL_CHUNK;
    int z = p.getChunkZ();

    RepositionManager rm = getRepositionManager();

    int cY = rm.convertChunkY(y);

    if (cY < 0 || cY >= WORLD_HEIGHT >> Chunk.BLOCKS.BITS) {
      return;
    }
View Full Code Here

Examples of org.spout.api.protocol.reposition.RepositionManager.convertChunkY()

    int y = c.getY();// + SEALEVEL_CHUNK;
    int z = c.getZ();

    RepositionManager rm = getRepositionManager();

    int cY = rm.convertChunkY(y);

    if (cY < 0 || cY >= WORLD_HEIGHT >> Chunk.BLOCKS.BITS) {
      return null;
    }
View Full Code Here

Examples of org.spout.api.protocol.reposition.RepositionManager.convertChunkY()

  @Override
  public Iterator<IntVector3> getViewableVolume(int cx, int cy, int cz, int viewDistance) {
    RepositionManager rmI = this.getRepositionManager().getInverse();

    int convertY = rmI.convertChunkY(0);

    return new FlatIterator(cx, convertY, cz, 16, viewDistance);
  }

  @Override
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.