Class FileMcRegionChunkStore
java.lang.Object
com.sk89q.worldedit.world.storage.ChunkStore
com.sk89q.worldedit.world.storage.McRegionChunkStore
com.sk89q.worldedit.world.storage.FileMcRegionChunkStore
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class com.sk89q.worldedit.world.storage.McRegionChunkStore
cachedReader, curFilename
Fields inherited from class com.sk89q.worldedit.world.storage.ChunkStore
CHUNK_SHIFTS, CHUNK_SHIFTS_Y
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
getInputStream
(String name, String world) Get the input stream for a chunk file.boolean
isValid()
Returns whether the chunk store is of this type.Methods inherited from class com.sk89q.worldedit.world.storage.McRegionChunkStore
close, getChunkTag, getFilename, getReader
Methods inherited from class com.sk89q.worldedit.world.storage.ChunkStore
getChunk, toChunk, toChunk3d
-
Constructor Details
-
FileMcRegionChunkStore
Create an instance. The passed path is the folder to read the chunk files from.- Parameters:
path
- a path
-
-
Method Details
-
getInputStream
Description copied from class:McRegionChunkStore
Get the input stream for a chunk file.- Specified by:
getInputStream
in classMcRegionChunkStore
- Parameters:
name
- the name of the chunk fileworld
- the world name- Returns:
- an input stream
- Throws:
IOException
- if there is an error getting the chunk dataDataException
-
isValid
public boolean isValid()Description copied from class:ChunkStore
Returns whether the chunk store is of this type.- Specified by:
isValid
in classChunkStore
- Returns:
- true if valid
-