Examples of cacheChunk()


Examples of net.minecraft.world.chunk.storage.AnvilChunkLoader.cacheChunk()

    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

Examples of net.minecraft.world.gen.ChunkProviderServer.cacheChunk()

            NBTTagCompound nbtChunk = (NBTTagCompound) ticketChunks.tagAt(k);
            int chunkX = nbtChunk.getInteger("chunkX");
            int chunkZ = nbtChunk.getInteger("chunkZ");
            ChunkCoordIntPair chunkCoordIntPair = new ChunkCoordIntPair(chunkX, chunkZ);
            forceChunkInternal(tick, chunkCoordIntPair);
            chunkProviderServer.cacheChunk(chunkX, chunkZ);
          }
          // MCPC+ end
        }
      }
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.