Constructor and Description |
---|
AnvilChunk(World world,
CompoundTag tag)
Construct the chunk with a compound tag.
|
Modifier and Type | Method and Description |
---|---|
BaseBlock |
getBlock(Vector position)
Get a block;
|
int |
getBlockData(Vector position)
Get the block data of a block.
|
int |
getBlockID(Vector position)
Get the block ID of a block.
|
public AnvilChunk(World world, CompoundTag tag) throws DataException
world
- the world to construct the chunk fortag
- the tag to readDataException
- on a data errorpublic int getBlockID(Vector position) throws DataException
Chunk
getBlockID
in interface Chunk
position
- the position of the blockDataException
- thrown on data errorpublic int getBlockData(Vector position) throws DataException
Chunk
getBlockData
in interface Chunk
position
- the position of the blockDataException
- thrown on data errorpublic BaseBlock getBlock(Vector position) throws DataException
Chunk
getBlock
in interface Chunk
position
- the position of the blockDataException
- thrown on data error