Class FileLegacyChunkStore
java.lang.Object
com.sk89q.worldedit.world.storage.ChunkStore
com.sk89q.worldedit.world.storage.LegacyChunkStore
com.sk89q.worldedit.world.storage.FileLegacyChunkStore
- All Implemented Interfaces:
Closeable
,AutoCloseable
Represents the chunk store used by Minecraft Alpha.
-
Field Summary
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 f1, String f2, String name) 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.LegacyChunkStore
getChunkTag, getFilename, getFilename
Methods inherited from class com.sk89q.worldedit.world.storage.ChunkStore
close, getChunk, toChunk, toChunk3d
-
Constructor Details
-
FileLegacyChunkStore
Create an instance. The passed path is the folder to read the chunk files from.- Parameters:
path
- path to a folder
-
-
Method Details
-
getInputStream
Get the input stream for a chunk file.- Specified by:
getInputStream
in classLegacyChunkStore
- Parameters:
f1
- the first part of the pathnamef2
- the second part of the pathnamename
- the name of the file- Returns:
- an input stream
- Throws:
DataException
- if there is an error getting data for this chunk
-
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
-