====== cChunkDesc class ======
The cChunkDesc class is a container for chunk data while the chunk is being generated. As such, it is only used as a parameter for the [[api:plugin:onchunkgenerating|OnChunkGenerating]] and [[API:plugin:OnChunkGenerated|OnChunkGenerated]] hooks and cannot be constructed on its own. Plugins can use this class in both those hooks to manipulate generated chunks.


===== Functions =====
^ Function ^ Parameters ^ Return values ^ Notes ^
| FillBlocks | BlockType, BlockMeta | | Fills the entire chunk with the specified blocks |
| GetBiome | RelX, RelZ | EMCSBiome | Returns the biome at the specified relative coords |
| GetBlockMeta | RelX, RelY, RelZ | NIBBLETYPE | Returns the block meta at the specified relative coords |
| GetBlockType | RelX, RelY, RelZ | BLOCKTYPE | Returns the block type at the specified relative coords |
| GetBlockTypeMeta | RelX, RelY, RelZ | BLOCKTYPE, NIBBLETYPE | Returns the block type and meta at the specified relative coords |
| GetHeight | RelX, RelZ | number | Returns the height at the specified relative coords |
| IsUsingDefaultBiomes | | bool | Returns true if the chunk is set to use default biome generator |
| IsUsingDefaultComposition | | bool | Returns true if the chunk is set to use default composition generator |
| IsUsingDefaultFinish | | bool | Returns true if the chunk is set to use default finishers |
| IsUsingDefaultHeight | | bool | Returns true if the chunk is set to use default height generator |
| IsUsingDefaultStructures | | bool | Returns true if the chunk is set to use default structures |
| ReadBlockArea | BlockArea, MinRelX, MaxRelX, MinRelY, MaxRelY, MinRelZ, MaxRelZ | | Reads data from the chunk into the block area object |
| SetBiome | RelX, RelZ, EMCSBiome | | Sets the biome at the specified relative coords |
| SetBlockMeta | RelX, RelY, RelZ, BlockMeta | | Sets the block meta at the specified relative coords |
| SetBlockType | RelX, RelY, RelZ, BlockType | | Sets the block type at the specified relative coords |
| SetBlockTypeMeta | RelX, RelY, RelZ, BlockType, BlockMeta | | Sets the block type and meta at the specified relative coords |
| SetHeight | RelX, RelZ, Height | | Sets the height at the specified relative coords |
| SetUseDefaultBiomes | bool | | Sets the chunk to use default biome generator or not |
| SetUseDefaultComposition | bool | | Sets the chunk to use default composition generator or not |
| SetUseDefaultFinish | bool | | Sets the chunk to use default finishers or not |
| SetUseDefaultHeight | bool | | Sets the chunk to use default height generator or not |
| SetUseDefaultStructures | bool | | Sets the chunk to use default structures or not |
| WriteBlockArea | BlockArea, MinRelX, MinRelY, MinRelZ | | Writes data from the block area into the chunk |
