public abstract class ChunkStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SHIFTS
>> to chunk
<< from chunk
|
| Constructor and Description |
|---|
ChunkStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close resources.
|
Chunk |
getChunk(Vector2D pos,
LocalWorld world)
Get a chunk at a location.
|
abstract CompoundTag |
getChunkTag(Vector2D pos,
LocalWorld world)
Get the tag for a chunk.
|
abstract boolean |
isValid()
Returns whether the chunk store is of this type.
|
static BlockVector2D |
toChunk(Vector pos)
Convert a position to a chunk.
|
public static final int CHUNK_SHIFTS
public static BlockVector2D toChunk(Vector pos)
pos - public abstract CompoundTag getChunkTag(Vector2D pos, LocalWorld world) throws DataException, IOException
pos - DataExceptionIOExceptionpublic Chunk getChunk(Vector2D pos, LocalWorld world) throws DataException, IOException
pos - ChunkStoreExceptionIOExceptionDataExceptionpublic void close()
throws IOException
IOExceptionpublic abstract boolean isValid()
Copyright © 2010-2014. All Rights Reserved.