Constructor and Description |
---|
OldChunk(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 OldChunk(World world, CompoundTag tag) throws DataException
world
- the worldtag
- the tagDataException
public 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