public class AnvilChunk13 extends java.lang.Object implements Chunk
Constructor and Description |
---|
AnvilChunk13(CompoundTag tag)
Construct the chunk with a compound tag.
|
Modifier and Type | Method and Description |
---|---|
BaseBlock |
getBlock(BlockVector3 position)
Get a block.
|
protected void |
readBlockStates(BlockState[] palette,
long[] blockStatesSerialized,
BlockState[] chunkSectionBlocks) |
public AnvilChunk13(CompoundTag tag) throws DataException
tag
- the tag to readDataException
- on a data errorprotected void readBlockStates(BlockState[] palette, long[] blockStatesSerialized, BlockState[] chunkSectionBlocks) throws InvalidFormatException
InvalidFormatException
public BaseBlock getBlock(BlockVector3 position) throws DataException
Chunk
getBlock
in interface Chunk
position
- the position of the blockDataException
- thrown on data error