|
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Go to the documentation of this file.
97 int res = atoi(a_BiomeString.c_str());
98 if ((res != 0) || (a_BiomeString.compare(
"0") == 0))
int GetSnowStartHeight(EMCSBiome a_Biome)
Returns the height when a biome when a biome starts snowing.
bool IsBiomeNoDownfall(EMCSBiome a_Biome)
Returns true if the biome has no downfall - deserts and savannas.
EMCSBiome StringToBiome(const AString &a_BiomeString)
Translates a biome string to biome enum.
int NoCaseCompare(const AString &s1, const AString &s2)
Case-insensitive string comparison.
AString BiomeToString(int a_Biome)
Translates biome enum into biome string.
static struct @0 g_BiomeMap[]
#define ARRAYCOUNT(X)
Evaluates to the number of elements in an array (compile-time!)
EMCSBiome
Biome IDs The first batch corresponds to the clientside biomes, used by MineCraft.
bool IsBiomeMesa(EMCSBiome a_Biome)
Returns true if the biome is Mesa or one of its mutations.
bool IsBiomeMountain(EMCSBiome a_Biome)
Returns true if the biome is mountainous (mutations of the extreme hills biome)
bool IsBiomeVeryCold(EMCSBiome a_Biome)
Returns true if the biome is very cold (has snow on ground everywhere, turns top water to ice,...
bool IsBiomeCold(EMCSBiome a_Biome)
Returns true if the biome is cold (has snow and snowfall at higher elevations but not at regular heig...