Examples of FlatIterator


Examples of org.spout.api.util.FlatIterator

        // Add observer to spawn to keep loaded if desired
        if (worldConfig.LOADED_SPAWN.getBoolean()) {
          @SuppressWarnings ("unchecked")
          Entity e = world.createAndSpawnEntity(spawn, LoadOption.LOAD_GEN, NetworkComponent.class);
          e.get(NetworkComponent.class).setObserver(new FlatIterator(cx, 0, cz, 16, effectiveRadius));
        }
      }

      // Set the appropriate sky for the world type
      if (generator instanceof NetherGenerator) {
View Full Code Here

Examples of org.spout.api.util.FlatIterator

  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);
  }
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.