Examples of AnvilChunkLoaderPending


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

  public NBTTagCompound readChunkNBT(World world, int x, int z, boolean readOnly) {
    NBTTagCompound nbtTagCompound;
    ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(x, z);

    synchronized (this.syncLockObject) {
      AnvilChunkLoaderPending pendingchunktosave = pendingSaves.get(chunkcoordintpair);

      long key = key(x, z);
      if (pendingchunktosave == null) {
        nbtTagCompound = (NBTTagCompound) inProgressSaves.getValueByKey(key);
        if (nbtTagCompound == null) {
View Full Code Here

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

    }
  }

  void addToSaveQueue(ChunkCoordIntPair par1ChunkCoordIntPair, NBTTagCompound par2NBTTagCompound, boolean unloading) {
    synchronized (this.syncLockObject) {
      AnvilChunkLoaderPending pending = new AnvilChunkLoaderPending(par1ChunkCoordIntPair, par2NBTTagCompound);
      pending.unloading = unloading;
      if (this.pendingSaves.put(par1ChunkCoordIntPair, pending) == null) {
        ThreadedFileIOBase.threadedIOInstance.queueIO(this);
      }
    }
View Full Code Here

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

  /**
   * Returns a boolean stating if the write was unsuccessful.
   */
  @Override
  public boolean writeNextIO() {
    AnvilChunkLoaderPending anvilchunkloaderpending;

    long key;
    synchronized (this.syncLockObject) {
      if (this.pendingSaves.isEmpty()) {
        return false;
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.