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 position,
World world)
Get a chunk at a location.
|
abstract CompoundTag |
getChunkTag(Vector2D position,
World world)
Get the tag for a chunk.
|
abstract boolean |
isValid()
Returns whether the chunk store is of this type.
|
static BlockVector2D |
toChunk(Vector position)
Convert a position to a chunk.
|
public static final int CHUNK_SHIFTS
public static BlockVector2D toChunk(Vector position)
position - the positionpublic abstract CompoundTag getChunkTag(Vector2D position, World world) throws DataException, IOException
position - the position of the chunkDataException - thrown on data errorIOException - thrown on I/O errorpublic Chunk getChunk(Vector2D position, World world) throws DataException, IOException
position - the position of the chunkChunkStoreException - thrown if there is an error from the chunk storeDataException - thrown on data errorIOException - thrown on I/O errorpublic void close()
throws IOException
IOException - on I/O errorpublic abstract boolean isValid()
Copyright © 2010-2014. All Rights Reserved.