public class ChunkStoreHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ChunkStoreHelper.ChunkDataInputSupplier |
Modifier and Type | Method and Description |
---|---|
static Chunk |
getChunk(CompoundTag rootTag)
Convert a chunk NBT tag into a
Chunk implementation. |
static CompoundTag |
readCompoundTag(ChunkStoreHelper.ChunkDataInputSupplier input) |
public static CompoundTag readCompoundTag(ChunkStoreHelper.ChunkDataInputSupplier input) throws DataException, java.io.IOException
DataException
java.io.IOException
public static Chunk getChunk(CompoundTag rootTag) throws DataException
Chunk
implementation.rootTag
- the root tag of the chunkDataException
- if the rootTag is not valid chunk data