Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Go to the source code of this file.
Classes | |
struct | sCoords |
struct | sCoordsArr |
struct | sMetaCoords |
Functions | |
void | GetAcaciaTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random acacia tree. More... | |
void | GetAppleBushImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random apple bush (for jungles) More... | |
void | GetAppleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random apple tree. More... | |
void | GetBirchTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random birch tree. More... | |
void | GetBrownMushroomTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks with the blocks required to form the brown mushroom. More... | |
void | GetConiferTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks, bool a_Large) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random conifer tree. More... | |
void | GetDarkoakTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random darkoak tree. More... | |
void | GetJungleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks, bool a_Large) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random jungle tree. More... | |
void | GetLargeAppleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a large (branching) apple tree. More... | |
void | GetLargeJungleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a large jungle tree (2x2 trunk) More... | |
void | GetLargePineTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random large pine (tall conifer, little leaves at top) More... | |
void | GetLargeSpruceTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random large spruce (short conifer, multiple layers of leaves) More... | |
NIBBLETYPE | GetLogMetaFromDirection (NIBBLETYPE a_BlockMeta, Vector3d a_Direction) |
Returns the meta for a log from the given direction. More... | |
void | GetPineTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks, bool a_Large) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random pine. More... | |
void | GetRedMushroomTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks with the blocks required to form the red mushroom. More... | |
void | GetSmallAppleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a small (nonbranching) apple tree. More... | |
void | GetSmallJungleTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a small jungle tree (1x1 trunk) More... | |
void | GetSmallPineTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random small pine (tall conifer, little leaves at top) More... | |
void | GetSmallSpruceTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random small spruce (short conifer, two layers of leaves) More... | |
void | GetSpruceTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks, bool a_Large) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random spruce. More... | |
void | GetSwampTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random swampland tree. More... | |
void | GetTallBirchTreeImage (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a random large birch tree. More... | |
Vector3d | GetTreeBranch (BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_BlockPos, int a_BranchLength, Vector3d a_StartDirection, Vector3d a_Direction, sSetBlockVector &a_LogBlocks) |
Fills a_LogBlocks with the logs of a tree branch of the provided log type. More... | |
void | GetTreeImageByBiome (Vector3i a_BlockPos, cNoise &a_Noise, int a_Seq, EMCSBiome a_Biome, sSetBlockVector &a_LogBlocks, sSetBlockVector &a_OtherBlocks) |
Fills a_LogBlocks and a_OtherBlocks (dirt & leaves) with the blocks required to form a tree at the specified coords (lowest trunk block) in the specified biome. More... | |
static void | LargeSpruceAddRing (Vector3i a_BlockPos, int &a_Height, const sCoordsArr *const a_Ring, size_t a_RingCount, sSetBlockVector &a_OtherBlocks) |
static const Vector3d & | pickBranchDirection (const cNoise a_Noise, Vector3i a_BlockPos, int a_Seq) |
Chooses a direction for a branch to go to based on the start position (a_BlockPos) and a_Seq. More... | |
void | PushCoordBlocks (int a_BlockX, int a_Height, int a_BlockZ, sSetBlockVector &a_Blocks, const sCoords *a_Coords, size_t a_NumCoords, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta) |
Pushes a specified layer of blocks of the same type around (x, h, z) into a_Blocks. More... | |
void | PushCornerBlocks (int a_BlockX, int a_Height, int a_BlockZ, int a_Seq, cNoise &a_Noise, int a_Chance, sSetBlockVector &a_Blocks, int a_CornersDist, BLOCKTYPE a_BlockType, NIBBLETYPE a_Meta) |
void | PushSomeColumns (int a_BlockX, int a_Height, int a_BlockZ, int a_ColumnHeight, int a_Seq, cNoise &a_Noise, int a_Chance, sSetBlockVector &a_Blocks, const sMetaCoords *a_Coords, size_t a_NumCoords, BLOCKTYPE a_BlockType) |
Variables | |
static const sCoords | BigO1 [] |
static const sCoords | BigO1Spruce [] |
static const sCoords | BigO2 [] |
static const sCoords | BigO2Pine [] |
static const sCoords | BigO3 [] |
static const sCoords | BigO3Jungle [] |
static const sCoords | BigO3Pine [] |
static const sCoords | BigO4 [] |
static const sCoords | BigO4Jungle [] |
static const sCoords | BigO5Jungle [] |
static const sCoords | BigOF2Pine [] |
static const sCoordsArr | BigOJungleLayers [] |
static const sCoordsArr | BigOLayers [] |
static const sCoordsArr | BigOPineLayers [] |
static const sCoordsArr | BigOSpruceLayersV1 [] |
static const sCoordsArr | BigOSpruceLayersV2 [] |
static const sCoordsArr | BigOSpruceLayersV3 [] |
static const sCoordsArr | BigOSpruceLayersV4 [] |
static const sCoordsArr | BigOSpruceTop [] |
static const sCoords | Corners [] |
const int | MAX_LARGE_SPRUCE_TREE_RINGS = 11 |
const int | MIN_LARGE_SPRUCE_TREE_RINGS = 3 |
static const sCoords | TopLargePine [] |
void GetAcaciaTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetAppleBushImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetAppleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetBirchTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetBrownMushroomTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetConiferTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks, | ||
bool | a_Large = false |
||
) |
void GetDarkoakTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetJungleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks, | ||
bool | a_Large | ||
) |
void GetLargeAppleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetLargeJungleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetLargePineTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetLargeSpruceTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
NIBBLETYPE GetLogMetaFromDirection | ( | NIBBLETYPE | a_BlockMeta, |
Vector3d | a_Direction | ||
) |
void GetPineTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks, | ||
bool | a_Large | ||
) |
void GetRedMushroomTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetSmallAppleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetSmallJungleTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetSmallPineTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetSmallSpruceTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetSpruceTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks, | ||
bool | a_Large | ||
) |
void GetSwampTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
void GetTallBirchTreeImage | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
Vector3d GetTreeBranch | ( | BLOCKTYPE | a_BlockType, |
NIBBLETYPE | a_BlockMeta, | ||
Vector3i | a_BlockPos, | ||
int | a_BranchLength, | ||
Vector3d | a_StartDirection, | ||
Vector3d | a_Direction, | ||
sSetBlockVector & | a_LogBlocks | ||
) |
Fills a_LogBlocks with the logs of a tree branch of the provided log type.
The length of the branch can be changed with the a_BranchLength. The initial direction is a_StartDirection. The direction can be manipulated with a_Direction to create a curve. Returns the position of the last log block placed.
void GetTreeImageByBiome | ( | Vector3i | a_BlockPos, |
cNoise & | a_Noise, | ||
int | a_Seq, | ||
EMCSBiome | a_Biome, | ||
sSetBlockVector & | a_LogBlocks, | ||
sSetBlockVector & | a_OtherBlocks | ||
) |
|
static |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |