147 case mtBat:
return "bat";
149 case mtCat:
return "cat";
152 case mtCod:
return "cod";
153 case mtCow:
return "cow";
163 case mtFox:
return "fox";
169 case mtHusk:
return "husk";
175 case mtMule:
return "mule";
180 case mtPig:
return "pig";
203 case mtVex:
return "vex";
210 case mtWolf:
return "wolf";
279 static const std::unordered_map<std::string_view, CustomStatistic> CustomStatistics
396 return CustomStatistics.at(ID);
405 const auto NamespaceIndex = ID.find(
':');
406 if (NamespaceIndex == std::string_view::npos)
409 return { Namespace::Minecraft, ID };
412 const auto Namespace = ID.substr(0, NamespaceIndex);
416 const auto Value = ID.substr(NamespaceIndex + 1);
418 return { Namespace::Minecraft, Value };
423 return { Namespace::Cuberite, ID };
426 return { Namespace::Unknown, ID };
435 static const std::unordered_map<std::string_view, eMonsterType> MonsterTypes
547 return MonsterTypes.at(a_ID);
557 bool NextLetterCapitalized =
true;
558 std::for_each(a_ID.begin(), a_ID.end(), [&](
char & a_Letter)
560 if (NextLetterCapitalized)
562 a_Letter = static_cast<char>(std::toupper(a_Letter));
563 NextLetterCapitalized = false;
565 else if (a_Letter ==
'_')
568 NextLetterCapitalized =
true;
582 if ((a_ID ==
"ocelot") && a_IsTamed)
@ RightOfUpsideDownDiagonal
@ LeftOfUpsideDownDiagonal
eMonsterType
Identifies individual monster type.
@ InteractWithStonecutter
@ InteractWithBlastFurnace
@ InteractWithCartographyTable
@ InteractWithSmithingTable
@ InteractWithBrewingstand
@ InteractWithCraftingTable
AString Prettify(AString a_ID)
AString PrettifyEntityName(const AString &a_ID, const bool a_IsTamed=false)
std::string_view From(CustomStatistic a_ID)
CustomStatistic ToCustomStatistic(std::string_view a_ID)
std::pair< Namespace, std::string_view > SplitNamespacedID(std::string_view ID)
eMonsterType ToMonsterType(std::string_view a_ID)