public class RegionFileCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.io.File,RegionFile> |
REGIONS_BY_FILE |
Constructor and Description |
---|
RegionFileCache() |
Modifier and Type | Method and Description |
---|---|
static boolean |
chunkExists(java.io.File worldDir,
int chunkX,
int chunkZ) |
static void |
clearRegionFileReferences() |
static RegionFile |
createOrLoadRegionFile(java.io.File worldDir,
int chunkX,
int chunkZ) |
static java.io.DataInputStream |
getChunkInputStream(java.io.File worldDir,
int chunkX,
int chunkZ) |
static java.io.DataOutputStream |
getChunkOutputStream(java.io.File worldDir,
int chunkX,
int chunkZ) |
static RegionFile |
getRegionFileIfExists(java.io.File worldDir,
int chunkX,
int chunkZ) |
private static final java.util.Map<java.io.File,RegionFile> REGIONS_BY_FILE
public static RegionFile createOrLoadRegionFile(java.io.File worldDir, int chunkX, int chunkZ)
public static RegionFile getRegionFileIfExists(java.io.File worldDir, int chunkX, int chunkZ)
public static void clearRegionFileReferences()
public static java.io.DataInputStream getChunkInputStream(java.io.File worldDir, int chunkX, int chunkZ)
public static java.io.DataOutputStream getChunkOutputStream(java.io.File worldDir, int chunkX, int chunkZ)
public static boolean chunkExists(java.io.File worldDir, int chunkX, int chunkZ)