MCPcopy Create free account
hub / github.com/cuberite/cuberite / GetBiomeString

Function GetBiomeString

Tools/AnvilStats/Utils.cpp:54–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54const char * GetBiomeString(unsigned char a_Biome)
55{
56 static const char * BiomeNames[] = // Biome names, as equivalent to their index
57 {
58 "Ocean",
59 "Plains",
60 "Desert",
61 "Extreme Hills",
62 "Forest",
63 "Taiga",
64 "Swampland",
65 "River",
66 "Hell",
67 "Sky",
68 "Frozen Ocean",
69 "Frozen River",
70 "Ice Plains",
71 "Ice Mountains",
72 "Mushroom Island",
73 "Mushroom Island Shore",
74 "Beach",
75 "Desert Hills",
76 "Forest Hills",
77 "Taiga Hills",
78 "Extreme Hills Edge",
79 "Jungle",
80 "Jungle Hills",
81 } ;
82 return (a_Biome < ARRAYCOUNT(BiomeNames)) ? BiomeNames[a_Biome] : "";
83}
84
85
86

Callers 2

SaveBiomesMethod · 0.85
SaveBiomeBlockTypesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected