API
Functions and classes available in the Lua API
|
#include <002a.h>
Public Member Functions | |
void | FillBlocks (BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) |
void | FillRelCuboid (int a_MinX, int a_MaxX, int a_MinY, int a_MaxY, int a_MinZ, int a_MaxZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) |
Fills the relative cuboid with specified block; allows cuboid out of range of this chunk. | |
void | FillRelCuboid (const cCuboid &a_RelCuboid, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) |
Fills the relative cuboid with specified block; allows cuboid out of range of this chunk. | |
void | FloorRelCuboid (int a_MinX, int a_MaxX, int a_MinY, int a_MaxY, int a_MinZ, int a_MaxZ, BLOCKTYPE a_DstType, NIBBLETYPE a_DstMeta) |
Replaces the blocks in the cuboid by the dst blocks if they are considered non-floor (air, water); allows cuboid out of range of this chunk. | |
void | FloorRelCuboid (const cCuboid &a_RelCuboid, BLOCKTYPE a_DstType, NIBBLETYPE a_DstMeta) |
Replaces the blocks in the cuboid by the dst blocks if they are considered non-floor (air, water); allows cuboid out of range of this chunk. | |
EMCSBiome | GetBiome (int a_RelX, int a_RelZ) |
NIBBLETYPE | GetBlockMeta (int a_RelX, int a_RelY, int a_RelZ) |
BLOCKTYPE | GetBlockType (int a_RelX, int a_RelY, int a_RelZ) |
void | GetBlockTypeMeta (int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE &a_BlockType, NIBBLETYPE &a_BlockMeta) |
int | GetChunkX (void) const |
int | GetChunkZ (void) const |
int | GetHeight (int a_RelX, int a_RelZ) |
HEIGHTTYPE | GetMaxHeight (void) const |
Returns the maximum height value in the heightmap. | |
bool | IsUsingDefaultBiomes (void) const |
bool | IsUsingDefaultComposition (void) const |
bool | IsUsingDefaultFinish (void) const |
bool | IsUsingDefaultHeight (void) const |
bool | IsUsingDefaultStructures (void) const |
void | RandomFillRelCuboid (int a_MinX, int a_MaxX, int a_MinY, int a_MaxY, int a_MinZ, int a_MaxZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_RandomSeed, int a_ChanceOutOf10k) |
Fills the relative cuboid with specified block with a random chance; allows cuboid out of range of this chunk. | |
void | RandomFillRelCuboid (const cCuboid &a_RelCuboid, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_RandomSeed, int a_ChanceOutOf10k) |
Fills the relative cuboid with specified block with a random chance; allows cuboid out of range of this chunk. | |
void | ReadBlockArea (cBlockArea &a_Dest, int a_MinRelX, int a_MaxRelX, int a_MinRelY, int a_MaxRelY, int a_MinRelZ, int a_MaxRelZ) |
Reads an area from the chunk into a cBlockArea. | |
void | ReplaceRelCuboid (int a_MinX, int a_MaxX, int a_MinY, int a_MaxY, int a_MinZ, int a_MaxZ, BLOCKTYPE a_SrcType, NIBBLETYPE a_SrcMeta, BLOCKTYPE a_DstType, NIBBLETYPE a_DstMeta) |
Replaces the specified src blocks in the cuboid by the dst blocks; allows cuboid out of range of this chunk. | |
void | ReplaceRelCuboid (const cCuboid &a_RelCuboid, BLOCKTYPE a_SrcType, NIBBLETYPE a_SrcMeta, BLOCKTYPE a_DstType, NIBBLETYPE a_DstMeta) |
Replaces the specified src blocks in the cuboid by the dst blocks; allows cuboid out of range of this chunk. | |
void | SetBiome (int a_RelX, int a_RelZ, int a_BiomeID) |
void | SetBlockMeta (int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_BlockMeta) |
void | SetBlockType (int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType) |
void | SetBlockTypeMeta (int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) |
void | SetChunkCoords (int a_ChunkX, int a_ChunkZ) |
void | SetHeight (int a_RelX, int a_RelZ, int a_Height) |
void | SetUseDefaultBiomes (bool a_bUseDefaultBiomes) |
void | SetUseDefaultComposition (bool a_bUseDefaultComposition) |
void | SetUseDefaultFinish (bool a_bUseDefaultFinish) |
void | SetUseDefaultHeight (bool a_bUseDefaultHeight) |
void | SetUseDefaultStructures (bool a_bUseDefaultStructures) |
void | WriteBlockArea (const cBlockArea &a_BlockArea, int a_RelX, int a_RelY, int a_RelZ, cBlockArea::eMergeStrategy a_MergeStrategy=cBlockArea::msOverwrite) |
Writes the block area into the chunk, with its origin set at the specified relative coords. Area's data overwrite everything in the chunk. |
void cChunkDesc::FillBlocks | ( | BLOCKTYPE | a_BlockType, |
NIBBLETYPE | a_BlockMeta | ||
) |
void cChunkDesc::FillRelCuboid | ( | int | a_MinX, |
int | a_MaxX, | ||
int | a_MinY, | ||
int | a_MaxY, | ||
int | a_MinZ, | ||
int | a_MaxZ, | ||
BLOCKTYPE | a_BlockType, | ||
NIBBLETYPE | a_BlockMeta | ||
) |
Fills the relative cuboid with specified block; allows cuboid out of range of this chunk.
|
inline |
Fills the relative cuboid with specified block; allows cuboid out of range of this chunk.
void cChunkDesc::FloorRelCuboid | ( | int | a_MinX, |
int | a_MaxX, | ||
int | a_MinY, | ||
int | a_MaxY, | ||
int | a_MinZ, | ||
int | a_MaxZ, | ||
BLOCKTYPE | a_DstType, | ||
NIBBLETYPE | a_DstMeta | ||
) |
Replaces the blocks in the cuboid by the dst blocks if they are considered non-floor (air, water); allows cuboid out of range of this chunk.
|
inline |
Replaces the blocks in the cuboid by the dst blocks if they are considered non-floor (air, water); allows cuboid out of range of this chunk.
EMCSBiome cChunkDesc::GetBiome | ( | int | a_RelX, |
int | a_RelZ | ||
) |
NIBBLETYPE cChunkDesc::GetBlockMeta | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ | ||
) |
BLOCKTYPE cChunkDesc::GetBlockType | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ | ||
) |
void cChunkDesc::GetBlockTypeMeta | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ, | ||
BLOCKTYPE & | a_BlockType, | ||
NIBBLETYPE & | a_BlockMeta | ||
) |
|
inline |
|
inline |
int cChunkDesc::GetHeight | ( | int | a_RelX, |
int | a_RelZ | ||
) |
HEIGHTTYPE cChunkDesc::GetMaxHeight | ( | void | ) | const |
Returns the maximum height value in the heightmap.
bool cChunkDesc::IsUsingDefaultBiomes | ( | void | ) | const |
bool cChunkDesc::IsUsingDefaultComposition | ( | void | ) | const |
bool cChunkDesc::IsUsingDefaultFinish | ( | void | ) | const |
bool cChunkDesc::IsUsingDefaultHeight | ( | void | ) | const |
bool cChunkDesc::IsUsingDefaultStructures | ( | void | ) | const |
void cChunkDesc::RandomFillRelCuboid | ( | int | a_MinX, |
int | a_MaxX, | ||
int | a_MinY, | ||
int | a_MaxY, | ||
int | a_MinZ, | ||
int | a_MaxZ, | ||
BLOCKTYPE | a_BlockType, | ||
NIBBLETYPE | a_BlockMeta, | ||
int | a_RandomSeed, | ||
int | a_ChanceOutOf10k | ||
) |
Fills the relative cuboid with specified block with a random chance; allows cuboid out of range of this chunk.
|
inline |
Fills the relative cuboid with specified block with a random chance; allows cuboid out of range of this chunk.
void cChunkDesc::ReadBlockArea | ( | cBlockArea & | a_Dest, |
int | a_MinRelX, | ||
int | a_MaxRelX, | ||
int | a_MinRelY, | ||
int | a_MaxRelY, | ||
int | a_MinRelZ, | ||
int | a_MaxRelZ | ||
) |
Reads an area from the chunk into a cBlockArea.
void cChunkDesc::ReplaceRelCuboid | ( | int | a_MinX, |
int | a_MaxX, | ||
int | a_MinY, | ||
int | a_MaxY, | ||
int | a_MinZ, | ||
int | a_MaxZ, | ||
BLOCKTYPE | a_SrcType, | ||
NIBBLETYPE | a_SrcMeta, | ||
BLOCKTYPE | a_DstType, | ||
NIBBLETYPE | a_DstMeta | ||
) |
Replaces the specified src blocks in the cuboid by the dst blocks; allows cuboid out of range of this chunk.
|
inline |
Replaces the specified src blocks in the cuboid by the dst blocks; allows cuboid out of range of this chunk.
void cChunkDesc::SetBiome | ( | int | a_RelX, |
int | a_RelZ, | ||
int | a_BiomeID | ||
) |
void cChunkDesc::SetBlockMeta | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ, | ||
NIBBLETYPE | a_BlockMeta | ||
) |
void cChunkDesc::SetBlockType | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ, | ||
BLOCKTYPE | a_BlockType | ||
) |
void cChunkDesc::SetBlockTypeMeta | ( | int | a_RelX, |
int | a_RelY, | ||
int | a_RelZ, | ||
BLOCKTYPE | a_BlockType, | ||
NIBBLETYPE | a_BlockMeta | ||
) |
void cChunkDesc::SetChunkCoords | ( | int | a_ChunkX, |
int | a_ChunkZ | ||
) |
void cChunkDesc::SetHeight | ( | int | a_RelX, |
int | a_RelZ, | ||
int | a_Height | ||
) |
void cChunkDesc::SetUseDefaultBiomes | ( | bool | a_bUseDefaultBiomes | ) |
void cChunkDesc::SetUseDefaultComposition | ( | bool | a_bUseDefaultComposition | ) |
void cChunkDesc::SetUseDefaultFinish | ( | bool | a_bUseDefaultFinish | ) |
void cChunkDesc::SetUseDefaultHeight | ( | bool | a_bUseDefaultHeight | ) |
void cChunkDesc::SetUseDefaultStructures | ( | bool | a_bUseDefaultStructures | ) |
void cChunkDesc::WriteBlockArea | ( | const cBlockArea & | a_BlockArea, |
int | a_RelX, | ||
int | a_RelY, | ||
int | a_RelZ, | ||
cBlockArea::eMergeStrategy | a_MergeStrategy = cBlockArea::msOverwrite |
||
) |
Writes the block area into the chunk, with its origin set at the specified relative coords. Area's data overwrite everything in the chunk.