Examples of AnvilChunkLoader


Examples of net.minecraft.world.chunk.storage.AnvilChunkLoader

                didError = true;
            }
            return null;
        }
        try {
            AnvilChunkLoader acl = (AnvilChunkLoader)cps.currentChunkLoader;
            List<?> chunkstoremove = null;
            Set<?> pendingcoords = null;
            LinkedHashMap<?,?> pendingsavesmcpc = null;
           
            if (pendingAnvilChunksMCPC != null) {
View Full Code Here

Examples of net.minecraft.world.chunk.storage.AnvilChunkLoader

  }

  @Override
  @Declare
  public void cacheChunkInternal(int x, int z) {
    AnvilChunkLoader anvilChunkLoader = (AnvilChunkLoader) loader;
    if (anvilChunkLoader.isChunkCacheFull()) {
      return;
    }
    long key = key(x, z);
    final AtomicInteger lock = getLock(key);
    try {
      synchronized (lock) {
        if (chunks.containsItem(key) || loadingChunks.containsItem(key) || unloadingChunks.containsItem(key)) {
          return;
        }
        anvilChunkLoader.cacheChunk(world, x, z);
      }
    } finally {
      if (lock.decrementAndGet() == 0) {
        loadingChunks.remove(key);
      }
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.