Cuberite
A lightweight, fast and extensible game server for Minecraft
|
This class adds a single top block in random positions in the specified biome on top of specified allowed blocks. More...
#include <FinishGen.h>
Public Types | |
typedef std::vector< EMCSBiome > | BiomeList |
typedef std::vector< BLOCKTYPE > | BlockList |
Public Member Functions | |
cFinishGenSingleTopBlock (int a_Seed, BLOCKTYPE a_BlockType, BiomeList a_Biomes, int a_Amount, BlockList a_AllowedBelow) | |
Public Member Functions inherited from cFinishGen | |
virtual | ~cFinishGen () |
Public Attributes | |
bool | m_IsAllowedBelow [256] |
bool | m_IsBiomeAllowed [256] |
Protected Member Functions | |
virtual void | GenFinish (cChunkDesc &a_ChunkDesc) override |
int | GetNumToGen (const cChunkDef::BiomeMap &a_BiomeMap) |
bool | IsAllowedBiome (EMCSBiome a_Biome) |
Returns true if the given biome is a biome that is allowed. More... | |
bool | IsAllowedBlockBelow (BLOCKTYPE a_BlockBelow) |
Returns true if the given blocktype may be below m_BlockType. More... | |
Protected Attributes | |
int | m_Amount |
Relative amount of blocks to try adding. More... | |
BLOCKTYPE | m_BlockType |
cNoise | m_Noise |
This class adds a single top block in random positions in the specified biome on top of specified allowed blocks.
Used for:
Definition at line 274 of file FinishGen.h.
typedef std::vector<EMCSBiome> cFinishGenSingleTopBlock::BiomeList |
Definition at line 281 of file FinishGen.h.
typedef std::vector<BLOCKTYPE> cFinishGenSingleTopBlock::BlockList |
Definition at line 278 of file FinishGen.h.
|
inline |
Definition at line 285 of file FinishGen.h.
|
overrideprotectedvirtual |
Implements cFinishGen.
Definition at line 1175 of file FinishGen.cpp.
|
protected |
Definition at line 1158 of file FinishGen.cpp.
|
inlineprotected |
Returns true if the given biome is a biome that is allowed.
Definition at line 329 of file FinishGen.h.
|
inlineprotected |
Returns true if the given blocktype may be below m_BlockType.
Definition at line 335 of file FinishGen.h.
|
protected |
Relative amount of blocks to try adding.
1 = one block per 256 biome columns.
Definition at line 323 of file FinishGen.h.
|
protected |
Definition at line 320 of file FinishGen.h.
bool cFinishGenSingleTopBlock::m_IsAllowedBelow[256] |
Definition at line 279 of file FinishGen.h.
bool cFinishGenSingleTopBlock::m_IsBiomeAllowed[256] |
Definition at line 282 of file FinishGen.h.
|
protected |
Definition at line 319 of file FinishGen.h.