Package com.bergerkiller.bukkit.common.wrappers.LongHashSet

Examples of com.bergerkiller.bukkit.common.wrappers.LongHashSet.LongIterator


    }
    if (TrainCarts.keepChunksLoadedOnlyWhenMoving && !group.isMoving()) {
      return false;
    }
    // Load nearby chunks
    LongIterator iter = group.chunks.longIterator();
    long chunk;
    while (iter.hasNext()) {
      chunk = iter.next();
      world.getChunkAt(MathUtil.longHashMsw(chunk), MathUtil.longHashLsw(chunk));
    }
    return true;
  }
View Full Code Here


    return this.loadedChunks.size() == this.chunks.size();
  }

  public boolean updateLoadedChunks(World world) {
    this.loadedChunks.clear();
    final LongIterator iter = this.chunks.longIterator();
    while (iter.hasNext()) {
      long chunk = iter.next();
      if (WorldUtil.isLoaded(world, MathUtil.longHashMsw(chunk), MathUtil.longHashLsw(chunk))) {
        this.loadedChunks.add(chunk);
      }
    }
    if (OfflineGroupManager.lastUnloadChunk != null) {
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.wrappers.LongHashSet.LongIterator

Copyright © 2018 www.massapicom. 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.