![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <FinishGen.h>
Public Member Functions | |
cFinishGenOreNests (int a_Seed, const OreInfos &a_OreInfos) | |
![]() | |
cFinishGenOres (int a_Seed, const OreInfos &a_OreInfos) | |
virtual void | GenFinish (cChunkDesc &a_ChunkDesc) override |
void | SetSeed (int a_Seed) |
(Re-)sets the seed used by the internal generating mechanisms. More... | |
![]() | |
virtual | ~cFinishGen () |
Protected Member Functions | |
virtual void | GenerateOre (cChunkDesc &a_ChunkDesc, BLOCKTYPE a_OreType, NIBBLETYPE a_OreMeta, int a_MaxHeight, int a_NumNests, int a_NestSize, int a_Seq) override |
Generates a single ore in the specified chunk image. More... | |
Private Types | |
using | Super = cFinishGenOres |
Additional Inherited Members | |
![]() | |
typedef std::vector< OreInfo > | OreInfos |
![]() | |
static const OreInfos & | DefaultNaturalPatches (void) |
Returns a vector of OreInfo structures describing the default Overworld non-ore pockets (dirt, diorite etc), usable in the constructor. More... | |
static const OreInfos & | DefaultNetherOres (void) |
Returns a vector of OreInfo structures describing the default Nether ores, usable in the constructor. More... | |
static const OreInfos & | DefaultOverworldOres (void) |
Returns a vector of OreInfo structures describing the default Overworld ores, usable in the constructor. More... | |
static OreInfos | OreInfosFromString (const AString &a_OreInfosString) |
Parses the parameter string into OreInfos array. More... | |
static AString | OreInfosToString (const OreInfos &a_OreInfos) |
Returns a string that represents the OreInfos given as the parameter. More... | |
![]() | |
cNoise | m_Noise |
The noise used for generating. More... | |
OreInfos | m_OreInfos |
All the ores enabled in this generator. More... | |
Definition at line 555 of file FinishGen.h.
|
private |
Definition at line 558 of file FinishGen.h.
|
inline |
Definition at line 562 of file FinishGen.h.
|
overrideprotectedvirtual |
Generates a single ore in the specified chunk image.
a_Seq is the sequencing number (used as a complement to seed to make each ore in the same chunk have different nests)
Implements cFinishGenOres.
Definition at line 1885 of file FinishGen.cpp.