Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Private Types | List of all members
cFinishGenOreNests Class Reference

#include <FinishGen.h>

Inheritance diagram for cFinishGenOreNests:
Inheritance graph
[legend]
Collaboration diagram for cFinishGenOreNests:
Collaboration graph
[legend]

Public Member Functions

 cFinishGenOreNests (int a_Seed, const OreInfos &a_OreInfos)
 
- Public Member Functions inherited from cFinishGenOres
 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...
 
- Public Member Functions inherited from cFinishGen
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

- Public Types inherited from cFinishGenOres
typedef std::vector< OreInfoOreInfos
 
- Static Public Member Functions inherited from cFinishGenOres
static const OreInfosDefaultNaturalPatches (void)
 Returns a vector of OreInfo structures describing the default Overworld non-ore pockets (dirt, diorite etc), usable in the constructor. More...
 
static const OreInfosDefaultNetherOres (void)
 Returns a vector of OreInfo structures describing the default Nether ores, usable in the constructor. More...
 
static const OreInfosDefaultOverworldOres (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...
 
- Protected Attributes inherited from cFinishGenOres
cNoise m_Noise
 The noise used for generating. More...
 
OreInfos m_OreInfos
 All the ores enabled in this generator. More...
 

Detailed Description

Definition at line 555 of file FinishGen.h.

Member Typedef Documentation

◆ Super

Definition at line 558 of file FinishGen.h.

Constructor & Destructor Documentation

◆ cFinishGenOreNests()

cFinishGenOreNests::cFinishGenOreNests ( int  a_Seed,
const OreInfos a_OreInfos 
)
inline

Definition at line 562 of file FinishGen.h.

Member Function Documentation

◆ GenerateOre()

void cFinishGenOreNests::GenerateOre ( cChunkDesc a_ChunkDesc,
BLOCKTYPE  a_OreType,
NIBBLETYPE  a_OreMeta,
int  a_MaxHeight,
int  a_NumNests,
int  a_NestSize,
int  a_Seq 
)
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.


The documentation for this class was generated from the following files: