Package net.minecraft.world.chunk.storage

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


    if (closed) {
      throw new IllegalStateException("RegionFileCache already closed - this means that for some reason ThreadedIOBase was still saving chunks in a world after unloading it.");
    }

    long hash = hash(x, z);
    RegionFile regionFile = regionFileMap.get(hash);
    if (!closing && regionFile != null) {
      return regionFile;
    }
    synchronized (this) {
      regionFile = regionFileMap.get(hash);
View Full Code Here


import java.util.logging.*;

class RegionFileFixer {
  public static RegionFile newRegionFile(File regionFileFile) {
    try {
      return new RegionFile(regionFileFile);
    } catch (ArrayIndexOutOfBoundsException e) {
      return fixNegativeOffset(regionFileFile);
    } catch (Throwable t) {
      FMLLog.log(Level.SEVERE, t, "Error opening region file: " + regionFileFile);
      throw UnsafeUtil.throwIgnoreChecked(t);
View Full Code Here

      }
    } catch (Throwable t) {
      FMLLog.log(Level.SEVERE, t, "Failed to fix negative offset index in " + regionFileFile);
      throw UnsafeUtil.throwIgnoreChecked(t);
    }
    return new RegionFile(regionFileFile);
  }
View Full Code Here

TOP

Related Classes of net.minecraft.world.chunk.storage.RegionFile

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.